Gprof does not generate a gmon.out-file at all :-(
Dave Korn
dave.korn@artimi.com
Fri Sep 16 18:18:00 GMT 2005
----Original Message----
>From: Clemens Eisserer
>Sent: 16 September 2005 09:19
> Hmm, could it be that gprof just accumulates the time of all external
> functions (=functions in libs not compiled with -pg) to main?
Most likely; and also any static c-tors that need running at startup, etc.
I'm not a gprof user myself, but I would expect that non-profiled functions
would be absorbed into their callers' times.
> I have tons of fread's all over my code and I think that those are the
> bottlenecks, however since the profile of gprof seems to be "wrong" I
> do not start to work and maybe I am just complicating the code
> although this would not be needed.
>> Zeit seconds seconds Aufrufe ms/Aufru ms/Aufru Name
>> 79.40 3.96 3.96 main
>> 20.25 4.97 1.01 1572864 0.00 0.00 getpix
>> 0.40 4.99 0.02 2 10.01 10.01 fixH11ByteOrder
So, are we talking about xwdtopnm.c (or some custom variation of it) here?
Yeh, unless you recompile your X-devel and libnetpbm libs with -pg, then
_all_ those function calls to X and pm_* functions that we see in main are
just going to be added into the time recorded for main.
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Binutils
mailing list