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

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

azaonline
Beginner
244 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
Black Belt
244 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

3 Replies
TimP
Black Belt
245 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.
azaonline
Beginner
244 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!
TimP
Black Belt
244 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.
Reply