How to apply gprof on gcc?
Ben Elliston
bje@au.ibm.com
Fri Aug 20 14:52:00 GMT 2004
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
More information about the Gcc
mailing list