I am Running a simple enough python code ; while doing Vtune hotspot analysis I found many functions could not get linked to source code. while some were.
while looking at the collection log I found warning that "Cannot locate debugging information for file /usr/bin/python2.7" .
Since my most work revolves around Python 2.7 and 3.x ; getting debug symbols will be very helpful in optimizing my apps.
can you help me how /where can I get debug symbols for Python 2.7 and 3.x.?
I am running it on Ubuntu 16.04 server with Linux fmxxx 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Does the python2.7-dbg package provide this? See https://wiki.python.org/moin/DebuggingWithGdb
As a last resort, you could rebuild python from source and generate the debug files yourself. Hours of fun (and no, I haven't done this for Python).