Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4644 Discussions

Extracting call sequence info with VTune

emadshihab
Beginner
141 Views
Hi there,

Is there any way of extracting the call sequence info of an application with VTune or even PTU?

I mean if I code something like this:

main(){
f1();
f2();
}

versus

main(){
f2();
f1();
}

how can I get a call graph or something that can tell the difference. Is this even possible with VTune or PTU?

Thanks,

Emad
0 Kudos
3 Replies
luweichao-2004
Beginner
141 Views

I

Nicolae_P_Intel
Employee
141 Views

I just came across your post. It may be too late but I will still vebture to answer:

in PTU you have the statistical callgraph - sampling the call stack at specified intervals - intrusion level very low

or the callgraph in vTune which will give the exact picture but the intrusion level is way higher as for the PTU statistical callgraph.

Hope this helps.

David_A_Intel1
Employee
141 Views
The short answer is, no. Both tools build a "call tree" and do not maintain order of calls. You can "drill down" to the source code and view the order there.

Reply