linux-mips
[Top] [All Lists]

Re: problem with mips-linux gprof

To: James E Wilson <wilson@specifix.com>
Subject: Re: problem with mips-linux gprof
From: Daniel Jacobowitz <dan@debian.org>
Date: Fri, 28 Apr 2006 16:15:30 -0400
Cc: dhunjukrishna@gmail.com, Linux-MIPS <linux-mips@linux-mips.org>
In-reply-to: <1146253927.15759.16.camel@aretha.corp.specifix.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060428063712.39756.qmail@web53501.mail.yahoo.com> <1146253927.15759.16.camel@aretha.corp.specifix.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.8i
On Fri, Apr 28, 2006 at 12:52:07PM -0700, James E Wilson wrote:
> The above assumes you don't have a profiled C library available.  If you
> did, then you would have at least two profiled functions, main and
> printf, and would have gotten some call graph info emitted.  If you
> don't have a profiled C library available, you could try compiling one
> yourself.  There is a glibc configure option --enable-profile for that. 
> I've never tried this myself.  I'd expect this to be a non-trivial
> exercise.  Besides the issue of compiling glibc, you also need to
> install the profiled library, and arrange to link with it.

Many prebuilt distributions already ship it; FWIW, if you link with
"-profile" instead of "-pg", GCC will automatically attempt to use
-lc_p.

-- 
Daniel Jacobowitz
CodeSourcery

<Prev in Thread] Current Thread [Next in Thread>