profiling of contained procedures
Daniel Franke
franke.daniel@gmail.com
Wed Nov 8 21:02:00 GMT 2006
On Wednesday 08 November 2006 20:00, Tobias Burnus wrote:
> Steve Kargl wrote:
> > Something broken in linux
>
> Maybe but it also depends on the options.
> Using:
> gprof -b -l a.out
> time seconds seconds calls Ts/call Ts/call name
> 88.95 0.07 0.07 contained
> (test.f90:7 @ 40099c)
> 12.71 0.08 0.01 contained
> (test.f90:6 @ 4009f3)
> 0.00 0.08 0.00 1 0.00 0.00 MAIN__ (test.f90:1
> @ 400958)
Tobias,
peeking at Steve's reply, I found the line option as well =)
There also is the "-a|--no-static" option:
"The -a option causes "gprof" to suppress the printing of statically
declared (private) functions. (These are functions whose names are
not listed as global, and which are not visible outside the
file/function/block where they were defined.) Time spent in these
functions, calls to/from them, etc, will all be attributed to the
function that was loaded directly before it in the executable file.
This option affects both the flat profile and the call graph."
Unfortunately, there is no "--static" option that reverses the effect.
Daniel
More information about the Fortran
mailing list