How to profile multi-threaded C++ application on Linux?
I used to do all my Linux profiling with gprof.
However, with my multi-threaded application, it's output appears to be inconsistent.
Now, I dug this up. However, it's from a long time ago and in my gprof output, it appears my gprof is listing functions used by non-main threads.
So, my questions are:
- In 2010, can I easily use gprof to profile multi-threaded Linux C++ applications? (Ubuntu 9.10)
- What other tools should I look into for profiling?