How do you profile an executable that loads shared libraries?

Mike Frysinger vapier@gentoo.org
Fri Feb 20 17:00:00 GMT 2009


On Friday 20 February 2009 10:33:37 Nick Clifton wrote:
> > I have an executable that loads shared libraries. I compiled with "-g
> > -pg" and then I ran gprof on the gmon.out file. I don't see any of the
> > shared libraries that the program loaded in my gprof output. How do
> > you profile shared libraries?
>
> It seems that this is no longer possible. :-(  Perhaps you could try
> another profiling tool (eg oprofile) or else using static libraries.

just curious, but how so ?  if the -pg code simply adds calls to mcount at 
every function entry, why would shared libs matter ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20090220/64db84fd/attachment.sig>


More information about the Binutils mailing list