Community
cancel
Showing results for 
Search instead for 
Did you mean: 
azaonline
Beginner
92 Views

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

Jump to solution
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

Accepted Solutions
TimP
Black Belt
92 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
93 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

azaonline
Beginner
92 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
92 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.