<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:How can I profile a binary that needs to launch in a new linux terminal window? in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1385837#M22189</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please give us an update? Is your issue resolved?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 20 May 2022 04:05:17 GMT</pubDate>
    <dc:creator>AthiraM_Intel</dc:creator>
    <dc:date>2022-05-20T04:05:17Z</dc:date>
    <item>
      <title>How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1379858#M22100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm having trouble trying to profile a binary application that needs to be run in a new linux terminal window using VTune. It needs to launch in a terminal because I need to interact with it after startup. For reference, I'll call this binary myAPP.&lt;/P&gt;
&lt;P&gt;I tried launching myAPP directly from within the &lt;FONT face="courier new,courier"&gt;vtune-gui&lt;/FONT&gt; using &lt;EM&gt;launch-application&lt;/EM&gt;, where the myAPP output gets redirected to the terminal that was used to launch &lt;FONT face="courier new,courier"&gt;vtune-gui&lt;/FONT&gt;. The problem with this is that while the myAPP print output displays in this terminal, it doesn't respond to the Ctrl-C we trap in myAPP, which allows myAPP to drop into its internal console command prompt and accept user input.&lt;/P&gt;
&lt;P&gt;I've also tried launching myAPP by wrapping it in a shell script, and using gnome-terminal to run myAPP in a new terminal window. This works fine for allowing me to interact with myAPP, but for some reason VTune doesn't seem to be able to profile the myAPP process when launched this way.&lt;/P&gt;
&lt;P&gt;I've checked the box for &lt;EM&gt;Analyze child processes&lt;/EM&gt;, and even tried selecting Analyze system-wide, and tried using &lt;EM&gt;Auto&lt;/EM&gt;, &lt;EM&gt;Native&lt;/EM&gt;, and &lt;EM&gt;Mixed&lt;/EM&gt; &lt;EM&gt;managed code profiling modes&lt;/EM&gt;, but VTune still doesn't appear to detect and profile it. The script I use to launch myAPP in a new terminal window using gnome-terminal is as follows:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;#!/bin/bash
trap "trap - SIGTERM &amp;amp;&amp;amp; kill -- -$$" SIGINT SIGTERM EXIT

gnome-terminal --command "./myAPP &amp;lt;arguments&amp;gt;"
wait
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an accepted way to profile a binary that needs to be run in a new linux terminal window?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;M_Stickland&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:58:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1379858#M22100</guid>
      <dc:creator>M_Stickland</dc:creator>
      <dc:date>2022-04-26T17:58:27Z</dc:date>
    </item>
    <item>
      <title>Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1380378#M22114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please share the following details:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. OS you are using&lt;/P&gt;&lt;P&gt;2. VTune version&lt;/P&gt;&lt;P&gt;3. Hardware you are using&lt;/P&gt;&lt;P&gt;4. Sample reproducer code(sample application that is similar to the application you are trying to analyze) and the exact steps you followed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:16:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1380378#M22114</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2022-04-28T11:16:19Z</dc:date>
    </item>
    <item>
      <title>Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1382040#M22129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you.&amp;nbsp;Could you please share the above mentioned details?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2022 13:07:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1382040#M22129</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2022-05-05T13:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1382159#M22130</link>
      <description>&lt;P&gt;Client OS is:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Distributor ID: Ubuntu&lt;BR /&gt;Description: Ubuntu 18.04.6 LTS&lt;BR /&gt;Release: 18.04&lt;BR /&gt;Codename: bionic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VTune version is:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Intel(R) VTune(TM) Profiler 2022.2.0 (build 623516) Command Line Tool&lt;BR /&gt;Copyright (C) 2009 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Virtual Machine Hypervisor is:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;VMware Fusion&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Professional Version 12.2.3 (19436697)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Host OS is:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;System Version: macOS Big Sur 11.6.5 (20G527)&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Kernel Version: Darwin 20.6.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample reproducer code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I don't currently have any s&lt;SPAN&gt;ample reproducer code, it's a pretty complex application, and unfortunately I'm unable to share the code I'm analyzing with you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, since you won't be able to test the Ctrl-C trapping that myAPP does, maybe we could focus instead on the fact that when I run myAPP in a new terminal window using gnome-terminal (see previous post for shell script example), VTune doesn't seem to be able to detect and analyze the myAPP process that gnome-terminal launched.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll see if I can find another application that is also not detected/analyzed by VTune when launched in this same way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;M_Stickland&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 22:32:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1382159#M22130</guid>
      <dc:creator>M_Stickland</dc:creator>
      <dc:date>2022-05-05T22:32:57Z</dc:date>
    </item>
    <item>
      <title>Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1384033#M22158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good day to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the details with us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you wish to interact with the terminal while running an analysis, we recommend you to use the command line method to perform the analysis.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example, command to run hotspot analysis is given below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;vtune -collect hotspots -knob sampling-mode=sw -- /home/test/myApplication&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer the below links to know more about VTune command line interface:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/command-syntax.html" rel="noopener noreferrer" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/command-syntax.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/running-command-line-analysis.html#running-command-line-analysis" rel="noopener noreferrer" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/command-line-interface/running-command-line-analysis.html#running-command-line-analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/dam/develop/external/us/en/documents/vtune-profiler-cheat-sheet.pdf" rel="noopener noreferrer" target="_blank"&gt;https://www.intel.com/content/dam/develop/external/us/en/documents/vtune-profiler-cheat-sheet.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this helps, do accept this as a solution as it will helps others with a similar issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 May 2022 05:23:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1384033#M22158</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2022-05-13T05:23:08Z</dc:date>
    </item>
    <item>
      <title>Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1385837#M22189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please give us an update? Is your issue resolved?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2022 04:05:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1385837#M22189</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2022-05-20T04:05:17Z</dc:date>
    </item>
    <item>
      <title>Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1388020#M22225</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 May 2022 09:24:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1388020#M22225</guid>
      <dc:creator>AthiraM_Intel</dc:creator>
      <dc:date>2022-05-27T09:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How can I profile a binary that needs to launch in a new linux terminal window?</title>
      <link>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1388197#M22228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In this original post, I simplified the shell script example I included for describing this problem. In the real shell script, I'm launching several other applications along with the &amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;gnome-terminal --&lt;FONT color="#333333"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;&lt;FONT color="#333333"&gt;./myAPP &amp;lt;arguments&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="helvetica" color="#333333"&gt;&amp;nbsp;command (see below). All of these applications are part of a&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="helvetica" color="#333333"&gt;&lt;SPAN&gt;single integrated system, and my goal is to be able to analyze the entire system all at once across multiple runs.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;#!/bin/bash
trap "trap - SIGTERM &amp;amp;&amp;amp; kill -- -$$" SIGINT SIGTERM EXIT

socat &amp;lt;linux domain socket arguments&amp;gt; &amp;amp; 

python3 app1.py &amp;amp;
sleep 3

python3 app2.py &amp;amp;

python3 app3.py &amp;lt;arguments&amp;gt; &amp;amp;

python3 app4.py &amp;lt;arguments&amp;gt; &amp;amp;

python3 app5.py &amp;lt;arguments&amp;gt; &amp;amp;

gnome-terminal -- ./myAPP &amp;lt;arguments&amp;gt;

wait
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can the vtune command line handle launching all of these applications together? If so, then I can launch the &lt;FONT face="courier new,courier"&gt;myAPP&lt;/FONT&gt; program without using the gnome terminal, and my problem would be solved. If not, then I still don't have a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;M_Stickland&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 20:23:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/How-can-I-profile-a-binary-that-needs-to-launch-in-a-new-linux/m-p/1388197#M22228</guid>
      <dc:creator>M_Stickland</dc:creator>
      <dc:date>2022-05-27T20:23:18Z</dc:date>
    </item>
  </channel>
</rss>

