This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: profiling shared libraries with gprof


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]