I am using VTune 2018 to profile my code but I am unable to see the source code, I can only see the machine code.
Here is my setup:
- Ubuntu 16.04.4 LTS
- gcc 5.4.0 with cmake 3.5.1 (not sure if it is relevant)
- gcc flags: -O2 -g -DNDEBUG
I get the following collection log:
Finally found the issue, it actually was not built with debug symbols, I just found out that someone has forced a release build internally in the CMakeLists.txt.