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

Vtune Profiler, fails differentiating overloaded function as hotspot

lalith-mcw
Novice
1,158 Views

Profiled Data doesn't differentiate overloaded function. In my case, I do have overloaded functions with same names. While viewing via Vtune Analyzer via Bottom-Up, Caller/Callee and Top-Down visualizers only the function name is displayed not the exact arguments or the exact overloaded function. Attached the image of the overloaded function

 

lalithmcw_2-1696518573412.png

 

The Function (Full) is supposed to display the whole function with arguments that is taking in. But the same is not working as expected. Not able to see even after generating hotspot data via vtune command line in Windows.

lalithmcw_1-1696518464886.png

 

lalithmcw_0-1696518394655.png

 

Able to view the exact executed line only by clicking on the function name which redirects to the exact place of hotspot. But for non-overloaded function it displays the exact arguments of the function with Function(Full)

lalithmcw_3-1696518784055.png

 

Are there any other methods to view or differentiate profiled datas which has overloaded functions as hotspots ? 

0 Kudos
6 Replies
Rahila_T_Intel
Employee
1,125 Views

Hi,

 

Thanks for posting in Intel Communities and sharing relevant details.

 

We tried VTune hotspot analysis on an application which contain overloaded functions with same names. 

But, we were able to view the exact overloaded functions with function name as well as full name via Bottom-Up, Caller/Callee and Top-Down visualizers. 

 

Kindly find the attachment.

hotspot-1.PNG

hotspot-3.PNG

hotspot-4.PNG

 

Also sharing the code which we tried.

 

If you are not able to view similar information on VTune GUI for your sample, kindly share your reproducer so that we can try to reproduce from our end.

Additionally, It would be great if you could share the VTune version in which you are trying out.

 

Thanks

 

0 Kudos
lalith-mcw
Novice
1,121 Views

Intel Vtune Profiler - Version - 2023.2.0

 

Tried profiling with the following `https://github.com/jrouwe/JoltPhysics` Repo after successful build `PerformanceTest` executable could be found and the same was used for profiling

0 Kudos
Rahila_T_Intel
Employee
1,046 Views

Hi,

 

We tried Hotspots Analysis with the sample you provided. But we were unable to reproduce the issue you are facing. We could see the exact overloaded functions with function name as well as full name via Bottom-Up, Caller/Callee and Top-Down visualizers. Please refer the screenshots attached. 

overloading-1.png

overloading-2.png

 

Could you please re-try to do the same and let us know whether you are able to get the results as expected.

 

Thanks 

 

0 Kudos
Rahila_T_Intel
Employee
997 Views

Hi,


We haven't heard back from you. Could you please give us an update?


Thanks


0 Kudos
lalith-mcw
Novice
984 Views

Hi,

 

Thanks for the efforts and support by your team on this. We found that we have messed up with the Build Modes, and we were able to see the exact function variant with overloaded functions with Debug Build modes.

 

We can close this Discussion here, since we were able to differentiate the functions with the profiled data.

0 Kudos
Rahila_T_Intel
Employee
972 Views

Hi,


Glad to know that your issue is resolved.


If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks


0 Kudos
Reply