- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, everyone:
I'm a beginner of the vtune tool. I want to know how to generate a function call graph like valgrind or gperftool ? Thus I can have a better understanding of the source code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can observe a program structure by running a "Basic Hotspots" analysis and opening a "Top-down Tree" tab.
There you'll see how routines called each other and how much time every routine consumes.
vTune Amplifer is a tool for understanding performance botlenecks and optimizing application.
My recommendation to start applying the tool to your application is to run a "Basic Hotspots" analysis and see the hottest routines list in the "Bottom-up" tab. Pick-up the hottest routine by selecting it in the grid. On the right pane you'll see a callstack for this hot routine. This callstack will give you an information about how this routine was called. You can browse through sources by clicking function names. If there are multiple callstacks you can iterate between them in the right pane or you can expand the routine callstacks in the grid by clicking the triangle next to the routine name. Then you can select the most time consuming callstack for investigations.
This approach will give you desired program structure information for starting optimization procedure.
Make sure your program is compiled with debug information to be able to se function names and sources.
Regards,
Dmitry
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can observe a program structure by running a "Basic Hotspots" analysis and opening a "Top-down Tree" tab.
There you'll see how routines called each other and how much time every routine consumes.
vTune Amplifer is a tool for understanding performance botlenecks and optimizing application.
My recommendation to start applying the tool to your application is to run a "Basic Hotspots" analysis and see the hottest routines list in the "Bottom-up" tab. Pick-up the hottest routine by selecting it in the grid. On the right pane you'll see a callstack for this hot routine. This callstack will give you an information about how this routine was called. You can browse through sources by clicking function names. If there are multiple callstacks you can iterate between them in the right pane or you can expand the routine callstacks in the grid by clicking the triangle next to the routine name. Then you can select the most time consuming callstack for investigations.
This approach will give you desired program structure information for starting optimization procedure.
Make sure your program is compiled with debug information to be able to se function names and sources.
Regards,
Dmitry
![](/skins/images/45C6C2D737ED71F4C51F0145C8CB1E9C/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page