Re: problem with mips-linux gprof

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux