|profile shared libraries with gcc and gprof email@example.com (2001-12-15)|
|Re: profile shared libraries with gcc and gprof firstname.lastname@example.org (Axel Kittenberger) (2001-12-19)|
|Re: profile shared libraries with gcc and gprof email@example.com (Vincent =?ISO-8859-1?Q?Stehl=E9?=) (2001-12-20)|
|From:||Axel Kittenberger <firstname.lastname@example.org>|
|Date:||19 Dec 2001 23:58:12 -0500|
|Organization:||Kabelsignal AG Broadband Service|
|Posted-Date:||19 Dec 2001 23:58:12 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.
One cheap option is to simply link the libraries static into your
application with the ld option --static.
If you're using glibc as your c library you can export the
variable LD_PROFILE=[libraryname] to tell the dynamic linker to profile the
shared library with this name...
Best see the ld.so man pages, like i.e.
- Axel Kittenberger
Return to the
Search the comp.compilers archives again.