I'm writing Python code and use a library that provides a Python interface through SWIG; the library itself is written in C++, and everything is run in Linux. I would now like to profile my code and not only get information about which if my library calls are taking the most time, but also what the situation is inside the library. (I'm suspecting a performance problem there.)
The library is open-source and if necessary I could build it with profiling flags enabled.
What are my options?