This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gprof: gmon.out file is missing call-graph data (I'm using -pg)


I have this problem with gprof: 
 
 test.c: 
 ------- 
 
 #include <stdio.h> 
 
 int main() 
 { 
 printf("hello world\n"); 
 
 return 0; 
 }; 
 
 
 
 makefile: 
 ----------- 
 test: test.c 
gcc -g -c test.c -pg 
gcc -o test test.o -pg 
 
 
 when I run test it generates the gmon.out, but gprof
complains: 
 
 gprof: gmon.out file is missing call-graph data 
 
Is there another maintained profiler? 
 
 Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]