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

how to see C++ source code,only"disassembly only" button can be invoked

azaonline
Beginner
480 Views
I use vtune 9.1.0 in Fedora 7. My C++project is compiled by ICC. I want to see hotspots with its C++ sourcecode, but I can only see disassembly code.whether I can see C++ source code when select "display hotspots for selected item"? how can I do this? Whether vtune only support C source code?
0 Kudos
1 Solution
TimP
Honored Contributor III
480 Views
Quoting - azaonline
I use vtune 9.1.0 in Fedora 7. My C++project is compiled by ICC. I want to see hotspots with its C++ sourcecode, but I can only see disassembly code.whether I can see C++ source code when select "display hotspots for selected item"? how can I do this? Whether vtune only support C source code?
The compilation must include -g option. In that case, if VTune analyzer doesn't find the source file, it should pop up a window asking for the path. It could get complicated if your source is spread among several directories, particularly if you have set ipo.

View solution in original post

0 Kudos
3 Replies
TimP
Honored Contributor III
481 Views
Quoting - azaonline
I use vtune 9.1.0 in Fedora 7. My C++project is compiled by ICC. I want to see hotspots with its C++ sourcecode, but I can only see disassembly code.whether I can see C++ source code when select "display hotspots for selected item"? how can I do this? Whether vtune only support C source code?
The compilation must include -g option. In that case, if VTune analyzer doesn't find the source file, it should pop up a window asking for the path. It could get complicated if your source is spread among several directories, particularly if you have set ipo.
0 Kudos
azaonline
Beginner
480 Views
Quoting - tim18
The compilation must include -g option. In that case, if VTune analyzer doesn't find the source file, it should pop up a window asking for the path. It could get complicated if your source is spread among several directories, particularly if you have set ipo.

done! thanks a lot!
0 Kudos
TimP
Honored Contributor III
480 Views
I should have reminded that -g sets -O0 when no -O is given, so it is usual to specify the desired level, such as -O2, when building for VTune.
0 Kudos
Reply