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

Extracting call sequence info with VTune

emadshihab
Beginner
292 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
292 Views

I

0 Kudos
Nicolae_P_Intel
Employee
292 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.

0 Kudos
David_A_Intel1
Employee
292 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.

0 Kudos
Reply