<?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: VTune GUI report not matching report generated by command line in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640872#M25349</link>
    <description>&lt;P&gt;Have you checked the assembly code for the source you specify below?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-source-object function=Queens::getRowColumn&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I use a similar command line to get assembly information, it looks it works.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; vtune -report hotspots -r ./r000hs -source-object function=multiply1 -group-by=basic-block,address -column=block,"CPU Time:Effective Time:Self",Assembly&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_1-1730643390896.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60075iA1536BA575415713/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_1-1730643390896.png" alt="yuzhang3_intel_1-1730643390896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_0-1730643310516.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60074i33ED43DCD7933F25/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_0-1730643310516.png" alt="yuzhang3_intel_0-1730643310516.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 14:17:56 GMT</pubDate>
    <dc:creator>yuzhang3_intel</dc:creator>
    <dc:date>2024-11-03T14:17:56Z</dc:date>
    <item>
      <title>VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640437#M25345</link>
      <description>&lt;DIV class=""&gt;My goal is to extract the data displayed in the GUI, but using the command line. I want to build a program that automatically runs VTune many times and extracts the relevant data.&lt;/DIV&gt;&lt;DIV class=""&gt;The view I want to get data from is this:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Humphrey_B_0-1730382091607.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60015iB203D26F3D37C6A1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Humphrey_B_0-1730382091607.png" alt="Humphrey_B_0-1730382091607.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I want, for each block and its instructions and its effective time against each instruction.&lt;/DIV&gt;&lt;DIV&gt;However, when I use the following command:&lt;/DIV&gt;&lt;DIV class=""&gt;vtune -report hotspots -r 2024_10_31_11_17_40_QueensgetRowColumn_10_1 -source-object function=Queens::getRowColumn -group-by=basic-block,address -column=block,"CPU Time:Effective Time:Self",assembly&lt;BR /&gt;&lt;BR /&gt;The generated result is the following:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Humphrey_B_1-1730382091608.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60014iD7C613F7ED805EDF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Humphrey_B_1-1730382091608.png" alt="Humphrey_B_1-1730382091608.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;As you can see, the times don't match at all. And many instructions are missing their times&lt;BR /&gt;This is a report on the same run/data as the GUI, but the GUI is clearly doing something extra to get its numbers.&lt;/DIV&gt;&lt;DIV&gt;Would anybody know what I am doing wrong? I assume there is a problem with my report command.&lt;/DIV&gt;&lt;DIV&gt;Many thanks,&lt;BR /&gt;Humphrey&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;BR /&gt;The run command the GUI is using is as follows:&lt;BR /&gt;vtune -collect hotspots -knob sampling-mode=hw -knob enable-stack-collection=true -knob stack-size=4096 --app-working-dir=/home/hb478/repos/are-we-fast-yet/benchmarks/Java/src -- atest_graalvm_home/bin/java -Djdk.graal.LIRGTSlowDown=false -Djdk.graal.GTMarkBasicBlocks=true -Djdk.graal.LIRBlockSlowdownFileName=BlockSlowdown1.json -XX:+UseJVMCICompiler -XX:+UseJVMCINativeLibrary -XX:-TieredCompilation '-XX:CompileCommand=dontinline,*::*' -Djdk.graal.TrivialInliningSize=0 -XX:-BackgroundCompilation Harness Queens 500 5000&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:43:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640437#M25345</guid>
      <dc:creator>Humphrey_B</dc:creator>
      <dc:date>2024-10-31T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640444#M25346</link>
      <description>&lt;P&gt;Did you try with 2025.0?&lt;/P&gt;
&lt;P&gt;In 2025.0, VTune GUI now includes the ability to generate report commands from the grid views below. For example, you can set grouping and sorting for the data you want to see:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_0-1730382990056.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60016iF14F38F04C3936DF/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_0-1730382990056.png" alt="yuzhang3_intel_0-1730382990056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vtune -report exec-query -rep-knob row-by="/Module/Function/FunctionRange/ParentCallStack" -sort-desc "CPU Time:Self" -rep-knob column-by="ViewpointGUIandCLIColumns" -r &amp;lt;result_dir&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 14:04:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640444#M25346</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-10-31T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640452#M25347</link>
      <description>&lt;P&gt;Thank you for your reply. I was running VTune 2024, but I have since updated it to 2025. I tried rerunning everything, but the command I use still produces different times than the data provided by the GUI.&lt;/P&gt;&lt;P&gt;I tried using the command you provided:&lt;BR /&gt;vtune -report exec-query -rep-knob row-by="/Module/Function/FunctionRange/ParentCallStack" -sort-desc "CPU Time:Self" -rep-knob column-by="ViewpointGUIandCLIColumns" -r &amp;lt;result_dir&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;his works, but in my case, I want to see the assembler by block for a method and the associated time for each instruction or block—the same data available in the GUI.&lt;/P&gt;&lt;P&gt;Any help with command for this?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Humphrey&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 15:01:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640452#M25347</guid>
      <dc:creator>Humphrey_B</dc:creator>
      <dc:date>2024-10-31T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640872#M25349</link>
      <description>&lt;P&gt;Have you checked the assembly code for the source you specify below?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-source-object function=Queens::getRowColumn&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I use a similar command line to get assembly information, it looks it works.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; vtune -report hotspots -r ./r000hs -source-object function=multiply1 -group-by=basic-block,address -column=block,"CPU Time:Effective Time:Self",Assembly&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_1-1730643390896.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60075iA1536BA575415713/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_1-1730643390896.png" alt="yuzhang3_intel_1-1730643390896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_0-1730643310516.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60074i33ED43DCD7933F25/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_0-1730643310516.png" alt="yuzhang3_intel_0-1730643310516.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 14:17:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640872#M25349</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-11-03T14:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640881#M25350</link>
      <description>&lt;P&gt;Thank you for the suggestion. I tried adding source lines to the filter, and as you can see, the source lines don't match the GUI view, and many of them are labeled as &lt;STRONG&gt;[Unknown]&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Humphrey_B_0-1730657509145.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60076iDB3B8642727BB741/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Humphrey_B_0-1730657509145.png" alt="Humphrey_B_0-1730657509145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is clearly a strange problem because both the GUI and the command-line actions are looking at the same data, but they have different data numbers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have since tried playing around with lots of options to get this to work. Strangely, I have found that if I run VTune against a Java program that does not contain extra debug information (so I don't compile with -g), VTune no longer has source code references, but all of the timings for the assembler match on both the command-line version and the GUI.&lt;BR /&gt;&lt;BR /&gt;This seems very strange, but at the moment, that's all I need. However, this does seem to be a bug relating to how VTune connects the assembler/source to the debug information.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 17:12:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640881#M25350</guid>
      <dc:creator>Humphrey_B</dc:creator>
      <dc:date>2024-11-03T17:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640921#M25351</link>
      <description>&lt;P&gt;You mean the cmd report works when profiling a program w/o debug information, right?&amp;nbsp; Your program is developed by Java? Could you share the compilation command line without debug information?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 00:47:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1640921#M25351</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-11-04T00:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1641062#M25352</link>
      <description>&lt;P&gt;So if I compile my program with javac MyProgram.java, no debugging information is included in the .class file, and VTune cannot find the source for the program, whether I use the GUI or command-line report.&lt;/P&gt;&lt;P&gt;However, the command-line assembly report is accurate and matches exactly the same information that the GUI reports.&lt;/P&gt;&lt;P&gt;If I compile my program with javac -g MyProgram.java, which includes debugging information in the .class file, the GUI can see the source and accurately report where CPU time is spent in the assembler. However, the command-line report does not seem to "see" this information, and the timings are inaccurate. This issue is what I'm describing in the first post of this thread.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 10:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1641062#M25352</guid>
      <dc:creator>Humphrey_B</dc:creator>
      <dc:date>2024-11-04T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1641180#M25356</link>
      <description>&lt;P&gt;Thanks reporting the issue, we need to do a deeper investigation. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 00:38:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1641180#M25356</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-11-05T00:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: VTune GUI report not matching report generated by command line</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1642618#M25376</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would suggest to try to use ‘source-search-dir’ option in cli and provide path to source files, maybe just cli vtune cannot find path to sources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A title="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-1/source-search-dir.html" href="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-1/source-search-dir.html" data-auth="NotApplicable" data-linkindex="0" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-1/source-search-dir.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 00:26:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-GUI-report-not-matching-report-generated-by-command-line/m-p/1642618#M25376</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-11-12T00:26:54Z</dc:date>
    </item>
  </channel>
</rss>

