gprof command is not creating proper out.txt

大憨熊 提交于 2019-12-05 07:40:17

gprof does not work on OS X. The system call it needs was removed several versions ago. It's not clear why the utility still ships. The alternatives are to use dtrace and/or sample.

no need to give gmon.out in the last line, give gprof -b testqueue > out.txt see http://www.network-theory.co.uk/docs/gccintro/gccintro_80.html for further reference

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