|
|

楼主 |
发表于 2005-11-29 15:17:12
|
显示全部楼层
多谢版主给的那个地址。
但是有一个问题。我用他提供的办法。加上static的时候可以用gprof看结果。如下:
gcc -static -Wall -g -pg temp.c -o temp
./temp
gprof temp gmon.out
但是用rdynamic的时候还是不行。这是怎么回事呢。编译的时候如下:
gcc -rdynamic -g -pg -Wall temp.c -o temp
./temp
gprof temp gmon.out
gmon.out is missing call-graph data.
请问版主这怎么解决 |
|