<?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 Cannot generate hotspots report in source-line level in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805044#M1575</link>
    <description>&lt;P&gt;You have to use option "/Zi" and "/DEBUG" to build on Windows, use "-g" option on Linux.&lt;BR /&gt;&lt;BR /&gt;I have no problem to use "-group-by source-line": I ran program under directory where it has executable and source&lt;BR /&gt;(You may add "-search-dir all:rp=/home/your-exe-path" when data collecting?)&lt;BR /&gt;&lt;BR /&gt;# source /opt/intel/vtune_amplifier_xe_2011/amplxe-vars.sh&lt;BR /&gt;Copyright (C) 2009-2012 Intel Corporation. All rights reserved.&lt;BR /&gt;Intel VTune Amplifier XE 2011 (build 221625)&lt;BR /&gt;&lt;BR /&gt;# amplxe-cl -collect hotspots -- ./primes.icc&lt;BR /&gt;Determining primes from 1 - 100000&lt;BR /&gt;Found 9592 primes&lt;BR /&gt;Using result path `/home/peter/problem_report/r003hs'&lt;BR /&gt;Executing actions 75 % Generating a report&lt;BR /&gt;Summary&lt;BR /&gt;-------&lt;/P&gt;&lt;P&gt;Elapsed Time: 0.967&lt;BR /&gt;CPU Time: 2.370&lt;BR /&gt;Executing actions 100 % done&lt;BR /&gt;&lt;BR /&gt;# amplxe-cl -report hotspots -group-by source-line -r r003hs&lt;BR /&gt;Using result path `/home/peter/problem_report/r003hs'&lt;BR /&gt;Executing actions 75 % Generating a report&lt;BR /&gt;Source File Source Line Module Source File Path CPU Time&lt;BR /&gt;----------- ----------- ---------- ------------------------------------- --------&lt;BR /&gt;primes.cpp 391 primes.icc /home/peter/problem_report/primes.cpp 2.360&lt;BR /&gt;primes.cpp 395 primes.icc /home/peter/problem_report/primes.cpp 0.010&lt;BR /&gt;Executing actions 100 % done&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jun 2012 11:17:44 GMT</pubDate>
    <dc:creator>Peter_W_Intel</dc:creator>
    <dc:date>2012-06-09T11:17:44Z</dc:date>
    <item>
      <title>Cannot generate hotspots report in source-line level</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805043#M1574</link>
      <description>Hi all,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I was using vtune to profile my C++ application on Linux. I can only use the command-line interface. I choose hotspots for my analysis but I can only get function level report. I tried to add -group-by source-line in report command but what I got was:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;Executing actions 75 % Generating a report                  &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Source File      Source Line Module Source File Path CPU Time&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;--------------------- ----------- ------ ---------------- --------&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[Unknown source file] [Unknown]  test  [Unknown]     0.130&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems that there is a lack of source file information. I did use the debug version of the program. Is there any other info I need to provide to vtune? Thanks in advance.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Bo&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Jun 2012 10:48:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805043#M1574</guid>
      <dc:creator>bofang_2012</dc:creator>
      <dc:date>2012-06-09T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Cannot generate hotspots report in source-line level</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805044#M1575</link>
      <description>&lt;P&gt;You have to use option "/Zi" and "/DEBUG" to build on Windows, use "-g" option on Linux.&lt;BR /&gt;&lt;BR /&gt;I have no problem to use "-group-by source-line": I ran program under directory where it has executable and source&lt;BR /&gt;(You may add "-search-dir all:rp=/home/your-exe-path" when data collecting?)&lt;BR /&gt;&lt;BR /&gt;# source /opt/intel/vtune_amplifier_xe_2011/amplxe-vars.sh&lt;BR /&gt;Copyright (C) 2009-2012 Intel Corporation. All rights reserved.&lt;BR /&gt;Intel VTune Amplifier XE 2011 (build 221625)&lt;BR /&gt;&lt;BR /&gt;# amplxe-cl -collect hotspots -- ./primes.icc&lt;BR /&gt;Determining primes from 1 - 100000&lt;BR /&gt;Found 9592 primes&lt;BR /&gt;Using result path `/home/peter/problem_report/r003hs'&lt;BR /&gt;Executing actions 75 % Generating a report&lt;BR /&gt;Summary&lt;BR /&gt;-------&lt;/P&gt;&lt;P&gt;Elapsed Time: 0.967&lt;BR /&gt;CPU Time: 2.370&lt;BR /&gt;Executing actions 100 % done&lt;BR /&gt;&lt;BR /&gt;# amplxe-cl -report hotspots -group-by source-line -r r003hs&lt;BR /&gt;Using result path `/home/peter/problem_report/r003hs'&lt;BR /&gt;Executing actions 75 % Generating a report&lt;BR /&gt;Source File Source Line Module Source File Path CPU Time&lt;BR /&gt;----------- ----------- ---------- ------------------------------------- --------&lt;BR /&gt;primes.cpp 391 primes.icc /home/peter/problem_report/primes.cpp 2.360&lt;BR /&gt;primes.cpp 395 primes.icc /home/peter/problem_report/primes.cpp 0.010&lt;BR /&gt;Executing actions 100 % done&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 11:17:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805044#M1575</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2012-06-09T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Cannot generate hotspots report in source-line level</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805045#M1576</link>
      <description>Hi Peter,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your reply. Actually I did use -g for compilation. But I realized that there might be problems here because I cannot even look at some of my source files in gdb ( for example, for one particular .h file i cannot see the corresponding .cpp file in gdb). That may cause the problem in vtune.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Btw, do I have to use intel compiler? From your example I see that you are using intel compiler right?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Bo&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Jun 2012 11:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805045#M1576</guid>
      <dc:creator>bofang_2012</dc:creator>
      <dc:date>2012-06-09T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Cannot generate hotspots report in source-line level</title>
      <link>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805046#M1577</link>
      <description>Bo,&lt;BR /&gt;&lt;BR /&gt;Thanks for the update, this is NOT the VTune issue.&lt;BR /&gt;&lt;BR /&gt;VTune Amplifier XE doesn't rely on compiler type, that means, the tool supports standard binary/symbolformat - i.e. PE2 , DWARF, etc.&lt;BR /&gt;&lt;BR /&gt;However if you choose Intel compiler - which provides more advanced options to build executable for performance gain.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Sun, 10 Jun 2012 00:48:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Cannot-generate-hotspots-report-in-source-line-level/m-p/805046#M1577</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2012-06-10T00:48:40Z</dc:date>
    </item>
  </channel>
</rss>

