Subject: Re: gprof
To: None <>
From: Ben Elliston <>
List: tech-toolchain
Date: 06/03/2003 07:39:45
jeff milam <> writes:

> running a large simulation that links code from fortran and c.  The
> problem that i am having is that when producing the results, the
> flat profile has the number of times each function was called but it
> does not produce any times...such as percentage of time or total
> time for the functions.  Here is just the first couple of copied
> lines from the output file.

Are you compiling your program sources with -pg or -p?  You need to
use -pg.  You also need to make sure you analyse the gmon.out (not
mon.out) file using gprof(1) rather than prof(1).

Cheers, Ben