This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: is there a work around for gprof with shared library?
- To: Alberto Lutgardo <alutgard at brocade dot com>
- Subject: Re: is there a work around for gprof with shared library?
- From: Andreas Jaeger <aj at suse dot de>
- Date: 09 Apr 2001 18:22:21 +0200
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- References: <176B85B0D4E0D411BA5200508B692E0A4C396D@hq-ex-1.brocade.com>
Alberto Lutgardo <alutgard@brocade.com> writes:
> I am using the following software:
>
> Linux 2.4.1-mvista-010301
> gcc version 2.95.3
> ld version 2.10.1
> gprof 2.10.1
>
> Problem:
>
> gprof is not working with shared library. I like some directions for a work around or how to fix it if there is not a big deal?
If you're using glibc 2.1 or newer, try the following to profile
libc.so.6:
$ LD_PROFILE=libc.so.6 ls
$ sprof libc.so.6 libc.so.6.profile
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj