Why does gprof occasionally not print number of calls for particular functions?

久未见 提交于 2019-12-07 21:38:27

问题


The application is compiled with -O0 -g -pg and gprof is run with its default settings.


回答1:


Check to make sure that all of your modules have the -pg flag. If any one is missing it, you could have these results.




回答2:


(self-answer) I believe it was static declarations.



来源:https://stackoverflow.com/questions/4177152/why-does-gprof-occasionally-not-print-number-of-calls-for-particular-functions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!