This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to apply gprof on gcc?
James E Wilson <wilson@specifixinc.com> writes:
> You could try doing a gcov profile instead of a gmon profile. gcov
> has some support for merging together info from multiple runs.
> Hence you may get more useful info this way.
You don't need to override BOOT_CFLAGS or anything special to make
this work. I recently discovered gcc's configure option:
--enable-coverage=LEVEL
enable compiler's code coverage collection.
Use to measure compiler performance and locate
unused parts of the compiler. With LEVEL, specify
optimization. Values are opt, noopt,
default is noopt
Ben