This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to apply gprof on gcc?
- From: Chunhua Liao <liaoch at cs dot uh dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 13 Aug 2004 16:45:07 -0500
- Subject: How to apply gprof on gcc?
Hi,
I'd like to see the hotspots in gcc using gprof. Does anybody has similar
experience ?
Here is my unsuccessful attempt:
Build gcc 3.5 2004-8-10 with:
make BOOT_CFLAGS='-pg -O0' bootstrap
but it failed.
However, there were some gmon.out scattered in the build directories
after that, I tried gprof cc1 gmon.out in the builddir/gcc and found the
call graph was very incomplete. Only a few out of over 6000 functions were
shown.
Best Regards
Liao