<?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 Hi Peter, in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038679#M13681</link>
    <description>&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I don't say that the current VTune implementation should be able to correctly work with tasks in attach-to-process mode. But I think there is no technical reason why this feature cannot be implemented.&lt;/P&gt;

&lt;P&gt;Of course one would possibly need to overthink the way how the user application and VTune communicate or &lt;EM&gt;when &lt;/EM&gt;certain information is exchanged or initialized.&lt;/P&gt;

&lt;P&gt;@MrAnderson: Collecting user's voices to get an overview which features are needed most is a good method - we do the same in our company :-)&lt;/P&gt;</description>
    <pubDate>Fri, 05 Sep 2014 05:55:18 GMT</pubDate>
    <dc:creator>Hagen_G_</dc:creator>
    <dc:date>2014-09-05T05:55:18Z</dc:date>
    <item>
      <title>Use tasks in Attach-to-Process mode?</title>
      <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038676#M13678</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have recently tried the VTune tasks API and am quite happy with it, but I don't understand why it is restricted to the launch-process mode. For my work it would absolutely make sense to use it also in the attach-to-process mode (which I usually use).&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Hagen&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 07:26:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038676#M13678</guid>
      <dc:creator>Hagen_G_</dc:creator>
      <dc:date>2014-09-03T07:26:50Z</dc:date>
    </item>
    <item>
      <title>Hi!</title>
      <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038677#M13679</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Great question! &amp;nbsp;It has to do with the dynamic loading that is implemented so that your application can run with or *without* VTune Amplifier present. &amp;nbsp;If VTune Amplifier does not start the process, then the DLL does not load the actual API routines and instead links in stubs. &amp;nbsp;Thus, when you attach, there is nothing to report via the APIs. &amp;nbsp;If, however, VTune Amplifier is present, then the actual code is linked in and data is provided to VTune Amplifier during the run. &amp;nbsp;It is a tricky procedure that works well for the way it was designed. &amp;nbsp;However, it was not designed to support attaching.&lt;/P&gt;

&lt;P&gt;We have received this feature request in the past, so I will add your voice to it and see if the development team can pick it up in a future release.&lt;/P&gt;

&lt;P&gt;Thanks for your post!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:02:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038677#M13679</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2014-09-03T16:02:58Z</dc:date>
    </item>
    <item>
      <title>This is hard to implement in</title>
      <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038678#M13680</link>
      <description>&lt;P&gt;This is hard to implement in my view, the reason is when the application is starting - itt domain and handle string for tasks and sub-tasks are created, but VTune didn't get notification. I write a simple test case - you can see sub-tasks string are marked, if and only if you use VTune to launch the application.&lt;/P&gt;

&lt;P&gt;# gcc -g -O0 task_api_test.c -I/opt/intel/vtune_amplifier_xe_2015/include /opt/intel/vtune_amplifier_xe_2015/lib64/libittnotify.a -lpthread -ldl -o task_api_test&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;# amplxe-cl -c concurrency -knob enable-user-tasks=true -duration 10 -target-pid 30108 ; case 1, no task info marked&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;# amplxe-cl -c concurrency -knob enable-user-tasks=true -duration 10 -- ./task_api_test; &amp;nbsp;case 2, ctrl-C to stop collection, you can get sub-task info&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 03:40:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038678#M13680</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2014-09-05T03:40:52Z</dc:date>
    </item>
    <item>
      <title>Hi Peter,</title>
      <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038679#M13681</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I don't say that the current VTune implementation should be able to correctly work with tasks in attach-to-process mode. But I think there is no technical reason why this feature cannot be implemented.&lt;/P&gt;

&lt;P&gt;Of course one would possibly need to overthink the way how the user application and VTune communicate or &lt;EM&gt;when &lt;/EM&gt;certain information is exchanged or initialized.&lt;/P&gt;

&lt;P&gt;@MrAnderson: Collecting user's voices to get an overview which features are needed most is a good method - we do the same in our company :-)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 05:55:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038679#M13681</guid>
      <dc:creator>Hagen_G_</dc:creator>
      <dc:date>2014-09-05T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Quote:Hagen G. wrote:</title>
      <link>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038680#M13682</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hagen G. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I don't say that the current VTune implementation should be able to correctly work with tasks in attach-to-process mode. But I think there is no technical reason why this feature cannot be implemented.&lt;/P&gt;

&lt;P&gt;Of course one would possibly need to overthink the way how the user application and VTune communicate or &lt;EM&gt;when &lt;/EM&gt;certain information is exchanged or initialized.&lt;/P&gt;

&lt;P&gt;@MrAnderson: Collecting user's voices to get an overview which features are needed most is a good method - we do the same in our company :-)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Hagen,&lt;/P&gt;

&lt;P&gt;You're right! We need to learn more from our customers including feedbacks, feature requests and ideas. I didn't say it is impossible to implement - just said it is hard to do. It means that&amp;nbsp;we might take more efforts to achieve the goal.&lt;/P&gt;

&lt;P&gt;Back to this case, I think even VTune didn't start up but application was running, app with Task API can record domain creation, task handle string - then VTune warmed up (attach running process), will exchange infomation with application to know what happened before...so task begin/end region can be recognized.&lt;/P&gt;

&lt;P&gt;It's my thought, not sure if it can be accepted by developer.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 12:52:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Use-tasks-in-Attach-to-Process-mode/m-p/1038680#M13682</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2014-09-05T12:52:20Z</dc:date>
    </item>
  </channel>
</rss>

