Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4661 Discussions

relate the callgraph info to the timebase sampling

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?
0 Kudos
1 Reply

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.