GPROF平面轮廓空结果

时间:2016-03-17 01:30:27

标签: gcc flat-file gprof

我尝试使用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    

我该怎么做才能解决这个问题?谢谢。

1 个答案:

答案 0 :(得分:4)

您可以使用gcc -no-pie选项作为解决方法。

相关问题