我尝试使用 gprof(我必须使用 gprof - 没有其他选项可用)当我得到平面文件时,结果是空的,尽管一切正常。
顺便说一下,代码是用 c 写的,所以我使用的是 gcc。
结果:
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
我该怎么做才能解决这个问题?谢谢。
最佳答案
您可以使用 gcc -no-pie 选项作为解决方法。
关于gcc - GPROF 平面轮廓空结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36050096/