This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: profiling shared libraries with gprof
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kunal Parmar <kunal dot parmar at celunite dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 20 Apr 2007 07:18:29 -0400
- Subject: Re: profiling shared libraries with gprof
- References: <1177049882.5484.39.camel@kunal>
On Fri, Apr 20, 2007 at 11:48:02AM +0530, Kunal Parmar wrote:
> LD_PROFILE=libfoo.so LD_PROFILE_OUTPUT=`pwd` ./bar 10000
>
> This generates the file libfoo.so.profile as expected. But when I run
> gprof, I get the following error :
>
> gprof: file `libfoo.so.profile' has unsupported version 131071
LD_PROFILE has nothing to do with gprof profiling. They are
completely separate, record different data, and use different
formats. Use sprof instead, or oprofile.
--
Daniel Jacobowitz
CodeSourcery