This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Update gprof documentation
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 29 Oct 2003 20:30:43 +0100 (CET)
- Subject: Re: Update gprof documentation
Nick Clifton wrote:
> + Note: The @samp{-pg} option must be part of your compilation options
> + as well as your link options. If it is not, when you run @code{gprof}
> + you will get no profile report and an error message like this:
> +
> + @example
> + gprof: gmon.out file is missing call-graph data
> + @end example
So use -p or -Q. It is very useful to link, but not compile with -pg .
Also, there is no reason this should be an error; a warning is fine,
but if a gmon file contains a flat profile (and no call graph data),
it is more logical to still display that profile than to bail out
completely.
Segher