This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gprof question


On Mon, 2004-03-29 at 03:07, Segher Boessenkool wrote:
> > [Actually, I wrote this first part:]
> > What does it mean when the total CPU time reported by gprof is quite
> > different from the total CPU time measured by the operating system?
> >
> > Or does this just tell us that 90% of the time was spend in library
> > routines and is therefore off the books?
> 
> Most likely, yes.
> 
> Link your program statically to get better results.

Thanks, this made a big improvement.  But there's still a lot of time
not accounted for.  Now I get 1825 seconds as the total cumulative time
in the gprof report (in the flat profile), but using "set time=1" tells
me that the program used 6647 seconds of user time.  So 73% of the time
is still missing somewhere.  Any ideas how I can figure out where that
time is going?

Again, this is binutils 2.13.90.0.2, gcc 3.2, Redhat 8.0.  Any hints
will be gratefully received.

 - Dave Cottingham




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]