gprof reports no time accumulated

后端 未结 7 578
暗喜
暗喜 2020-12-03 13:51

I\'m trying to profile a C++ application with gprof on a machine running OSX 10.5.7. I compile with g++ in the usual way, but using -pg flags, run the application and try to

7条回答
  •  有刺的猬
    2020-12-03 14:20

    I thought I might share this Apple mailing list discussion which I recently ran across.

    The behaviour described here is exactly what I am experiencing. It looks like gprof has been broken on OSX for quite some time.

    I've resorted to Shark which has been helpfully suggested by Dave Rigby.

    Thanks!

提交回复
热议问题