You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Doug MacEachern <do...@pobox.com> on 1998/08/26 19:09:01 UTC

gprof

so, who knows how to get some useful info out of gprof's output?  I've been
reading online docs, tinkering with the command line options, etc., but
have yet to find a combination that gives some useful stats.  Sure, lots of
time is spent in low-level i/o, memory functions, but the call graph
doesn't show who's calling who very well.  Are there certain files that
should not be compiled with -pg -a?  Other tips?

thanks,
-Doug


Re: gprof

Posted by Dean Gaudet <dg...@arctic.org>.
Oh solaris... I'm not up on solaris gprofism.  But yeah it sounds like
you're getting the right library.  Make sure the -pg is on the link line
is all I can think of.

BTW, another dumb question, you are using the gmon.out from one of the
children and not the parent, right?  :)

Dean

On Wed, 26 Aug 1998, Doug MacEachern wrote:

> At 06:49 PM 8/26/98 -0700, you wrote:
> >Try linking with -lc_p ... Everything should be compiled -pg for the best
> >effect.
> 
> There's no libc_p on solaris, but according the manpages, the -pg flag will
> cause the linker to use libc and libm in /usr/lib/libp/ which are the
> profiling versions of each.  So, libc_p and libp/libc are equivalents, I
> assume.
> 
> What about useful command line option combos when running gprof?
> 
> -Doug
> 
> 


Re: gprof

Posted by Doug MacEachern <do...@pobox.com>.
At 06:49 PM 8/26/98 -0700, you wrote:
>Try linking with -lc_p ... Everything should be compiled -pg for the best
>effect.

There's no libc_p on solaris, but according the manpages, the -pg flag will
cause the linker to use libc and libm in /usr/lib/libp/ which are the
profiling versions of each.  So, libc_p and libp/libc are equivalents, I
assume.

What about useful command line option combos when running gprof?

-Doug


Re: gprof

Posted by Dean Gaudet <dg...@arctic.org>.
Try linking with -lc_p ... Everything should be compiled -pg for the best
effect.

Dean

On Wed, 26 Aug 1998, Doug MacEachern wrote:

> so, who knows how to get some useful info out of gprof's output?  I've been
> reading online docs, tinkering with the command line options, etc., but
> have yet to find a combination that gives some useful stats.  Sure, lots of
> time is spent in low-level i/o, memory functions, but the call graph
> doesn't show who's calling who very well.  Are there certain files that
> should not be compiled with -pg -a?  Other tips?
> 
> thanks,
> -Doug
> 
>