Using gprof with pthreads

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?


是的,这可以在此处描述的解决方法的帮助下进行。


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.

链接地址: http://www.djcxy.com/p/40344.html

上一篇: gprof一个库

下一篇: 使用gprof和pthreads