Can gprof be used to profile a multi-threaded program that uses pthreads? That is, will its output include the time used in all the threads?
Asked
Active
Viewed 8,750 times
2 Answers
1
Have you considered pstack? It works fine with multiple threads, and it is good for finding performance problems by the stackshot method. gprof is what it is, but chances are you can do better.

Community
- 1
- 1

Mike Dunlavey
- 40,059
- 14
- 91
- 135