Mail Archives: djgpp/1996/07/21/04:01:33
On Fri, 19 Jul 1996, Thomas Demmer wrote:
> I am right now optimizing (well, who is not) a grid generator
> code with gprof.
> Now gprof tells me the total execution time is 44 seconds.
> The wall clock in fact indicates 87 seconds.
> Recompiling without -pg and running the test case gives
> 82 seconds.
I think `gprof' can only report the cumulative time that it measured, but
it doesn't tell you how much elapsed time did the program run. The
relative times (in percents) are computed relative to the total time
reported by `gprof' (44 sec in your case), so the profile is correct
anyhow.
- Raw text -