Time Sampling Problems with gprof

前端 未结 1 1874
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 05:35

I am attempting to profile some c++ code, compiled with g++ including the option -pg, using gprof. However, in spite of the fact that the program takes 10-15 minutes to run

1条回答
  •  失恋的感觉
    2021-01-19 06:25

    gprof doesn't count any blocked time, like I/O or other stuff. Also "self time" typically is extremely small in any routine that does all its work in subfunctions, like if you're mostly using a library in a DLL where gprof can't see it. Check this answer.

    0 讨论(0)
提交回复
热议问题