【问题标题】:Using gprof with pthreads将 gprof 与 pthread 一起使用
【发布时间】:2010-10-29 16:17:10
【问题描述】:

gprof 可以用来分析使用 pthread 的多线程程序吗?也就是说,它的输出会包括所有线程使用的时间吗?

【问题讨论】:

    标签: multithreading profiling pthreads gprof


    【解决方案1】:

    你考虑过pstack吗?它适用于多个线程,并且非常适合通过 stackshot 方法查找性能问题。 gprof 就是这样,但你可能会做得更好。

    【讨论】:

      【解决方案2】:

      是的,可以借助here 描述的解决方法。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-02-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-18
        • 2011-02-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多