|profile shared libraries with gcc and gprof firstname.lastname@example.org (2001-12-15)|
|Re: profile shared libraries with gcc and gprof email@example.com (Axel Kittenberger) (2001-12-19)|
|Re: profile shared libraries with gcc and gprof firstname.lastname@example.org (Vincent =?ISO-8859-1?Q?Stehl=E9?=) (2001-12-20)|
|From:||Vincent =?ISO-8859-1?Q?Stehl=E9?= <email@example.com>|
|Date:||20 Dec 2001 00:38:34 -0500|
|Posted-Date:||20 Dec 2001 00:38:34 EST|
> I use gcc (with option -p) to compile my program which uses shared
> libraries. But i cannot find calls of dynamic libraries in my profile.
> I generate my shared libraries (xxx.so) with the option -p too.
> Is it possible to profile shared libraries?
Did you try to compile with "-pg" rather than "-p" ? This is what is
specified in gprofs documentation .
Is it possible that the time spent in your shared libraries functions
be much less than the profile tick (something like 1/100th of second) ?
In that case, you should either perform many runs (see ) and/or try
to force static call graph discovery with gprofs "-c" option (see ).
Good luck anyway !
Vincent Stehlé StepMind S.A.
DSP system engineer Central Buro, Avenue de Campon
06110 Le Cannet, France
Return to the
Search the comp.compilers archives again.