gprof: Incompatibilities
1
1 8 Incompatibilities with Unix 'gprof'
1 *************************************
1
1 GNU 'gprof' and Berkeley Unix 'gprof' use the same data file 'gmon.out',
1 and provide essentially the same information. But there are a few
1 differences.
1
1 * GNU 'gprof' uses a new, generalized file format with support for
1 basic-block execution counts and non-realtime histograms. A magic
1 cookie and version number allows 'gprof' to easily identify new
11 style files. Old BSD-style files can still be read. ⇒
Profiling Data File Format File Format.
1
1 * For a recursive function, Unix 'gprof' lists the function as a
1 parent and as a child, with a 'calls' field that lists the number
1 of recursive calls. GNU 'gprof' omits these lines and puts the
1 number of recursive calls in the primary line.
1
1 * When a function is suppressed from the call graph with '-e', GNU
1 'gprof' still lists it as a subroutine of functions that call it.
1
1 * GNU 'gprof' accepts the '-k' with its argument in the form
1 'from/to', instead of 'from to'.
1
1 * In the annotated source listing, if there are multiple basic blocks
1 on the same line, GNU 'gprof' prints all of their counts, separated
1 by commas.
1
1 * The blurbs, field widths, and output formats are different. GNU
1 'gprof' prints blurbs after the tables, so that you can see the
1 tables without skipping the blurbs.
1