gprof reports no time accumulated

后端 未结 7 710
暗喜
暗喜 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:11

    Does your program use multiple threads? I've experienced this issue with multithreaded programs on Linux, not sure if OS X would have the same problems

    Here is a solution to the multithreading issue which I've used sucessfully in the past.

提交回复
热议问题