Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4827 Discussions

relate the callgraph info to the timebase sampling

vtuneuser
Beginner
251 Views
The Vtune TB sampling has shown the hot spot function of my application. But the Callgraph showed me that this hotspot function was not the function that has the highest average Self time per call or average Total time per call. How do I relate the info from Callgraph to the hotspot function from the time base sampling?
Thanks.
0 Kudos
1 Reply
David_A_Intel1
Employee
251 Views

I wouldn't compare it to the average self-time per call but, rather, the total self-time for the function. Sampling is showing you that most of the CPU is consumed by function foo().Callgraph can show you how you got there, i.e., which functions called foo(). Then, look at the callers and the distribution of the calls to foo() using the Call List tab of the callgraph view.

Also, realize that callgraph skews the timing due to instrumentation. So, the times are not "real" time, but can be used to compare the function timings relative to each other.

Sampling is accurately identifying the most time consuming functions. Now, use callgraph to determine which function(s) are calling that function the most to determine if you can optimize how you use this function.

Reply