Gcc GPROF平面轮廓空结果
我尝试使用gprof(我必须使用gprof-没有其他选项可用)当我得到平面文件时,结果是空的,即使一切正常 顺便说一下,代码是用c编写的,所以我使用的是gcc 结果:Gcc GPROF平面轮廓空结果,gcc,flat-file,gprof,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/c
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
我能做些什么来解决这个问题?谢谢。您可以使用gcc-无饼选项作为解决方法。请共享您的源代码和编译/分析命令行。即使它起作用,也不会告诉您太多。我必须指定
-fno pie
。此处为i386上的gcc 4.4.5。