How do you profile an executable that loads shared libraries?

Nick Clifton nickc@redhat.com
Fri Feb 20 15:33:00 GMT 2009


Hi Scott,

> 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.

Cheers
   Nick



More information about the Binutils mailing list