On Mon, Feb 22, 2010 at 05:09:53PM -0600, Jon Turner wrote: > Doh! Thanks, Nathan. I think you put your finger on it. > I was well aware of the overhead that gprof can introduce, > but did not recognize that this overhead was not being > counted by gprof.
gprof generally does not have any support for shared libraries. It will ignore profiling samples that lie outside the executable. And in this case, that includes _mcount (which is in libc.so.6). That's probably why. -- Daniel Jacobowitz CodeSourcery