Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gcc GPROF平面轮廓空结果_Gcc_Flat File_Gprof - Fatal编程技术网

Gcc GPROF平面轮廓空结果

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

我尝试使用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-无饼选项作为解决方法。

请共享您的源代码和编译/分析命令行。即使它起作用,也不会告诉您太多。我必须指定
-fno pie
。此处为i386上的gcc 4.4.5。