Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5250 Discussions

How do you get assembly information for a method that appears multiple times?

Humphrey_B
Beginner
679 Views

I have a method for which I want to collect the assembly view using the command line. Here’s the command I’m using:

 

vtune -report hotspots -r Data/2025_01_28_22_10_33 -source-object function="havlak::HavlakLoopFinder\$4::apply" -group-by=basic-block,address -column=block,"CPU Time:Self",assembly

 

It works for all methods in my Havlak classes except one: havlak::HavlakLoopFinder\$4::apply. The issue isn’t related to escaping the $, as other methods with $ work fine with the same syntax.

and the gui view does provide the source view i want,
The problem is that this method appears twice in the GUI:

Humphrey_B_0-1738106296024.png

havlak::HavlakLoopFinder$4::apply(java::lang::Object)

havlak::HavlakLoopFinder$4::apply(java::lang::Integer)

 

When I run the command, I get this result:

vtune -report hotspots -r *Ihaveommitedthis* -source-object function="havlak::HavlakLoopFinder\$4::apply" -group-by=basic-block,address -column=block,"CPU Time:Self",assembly
vtune: Using result path *Ihaveommitedthis*
vtune: Executing actions 75 % Generating a report
vtune: Error: Source / assembly code for the selected object is not available.
vtune: Error: An internal error has occurred. Our apologies for this inconvenience. Please gather a description of the steps leading up to the problem and contact the Intel customer support team.

vtune: Executing actions 100 % done
vtune: Error: 0x40000023 (User input error)

I want this to work on the command line, as using the GUI is not a viable workaround. How can I distinguish between the two versions of the method name? Can I provide a more specific or concrete name to resolve this?

Labels (1)
0 Kudos
2 Replies
yuzhang3_intel
Moderator
614 Views

We need to check internally and give an update to you.

BTW, the issue is only observed in your current case? 

"method appears twice in the GUI"

0 Kudos
Arun11
Employee
397 Views

 

Please try the below command and also "object type" can be of function, module and source-file. The issue may be of "object type", as you have used "function" for an "object" havlak::HavlakLoopFinder$4::apply(java::lang::Object).

vtune -report hotspots -r <project path> -source-object <object_type>=<value> -group-by=basic-block, assembly -sort-desc "CPU TIME:Self"

 

Reference : https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2025-0/viewing-source-objects-from-the-command-line.html

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2025-0/source-object.html

 

0 Kudos
Reply