You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1998/01/07 00:55:13 UTC
gprof under linux
If you use Linux and want to get useful gprof numbers for apache... and
pretty much any program that has a heavy libc component, then visit
<http://www.arctic.org/~dgaudet/linux/> I'm starting to build RPMs of the
tweaks I make to redhat 4.2 for useability.
There's an extra tweak in the libc that makes it useful for running gprof
against a standalone apache... as opposed to running with -X (which
changes the performance drastically due to the alarm() calls).
Dean
Re: gprof under linux
Posted by Dean Gaudet <dg...@arctic.org>.
Not unless you've got a source license or want to decompile the object...
My tweak changes the filename used to write the gmon.out file.
You could alternately write a module that has a child_exit function which
does a mkdir(/somewhere/$pid); chdir(/somewhere/$pid), and then exits.
This will cause the gmon.out to be plopped in some place different for
each child.
Dean
On Tue, 6 Jan 1998, Igor Tatarinov wrote:
> Is it possible to do the same on Solaris?
>
> igor
>
> Dean Gaudet wrote:
> >
> > If you use Linux and want to get useful gprof numbers for apache... and
> > pretty much any program that has a heavy libc component, then visit
> > <http://www.arctic.org/~dgaudet/linux/> I'm starting to build RPMs of the
> > tweaks I make to redhat 4.2 for useability.
> >
> > There's an extra tweak in the libc that makes it useful for running gprof
> > against a standalone apache... as opposed to running with -X (which
> > changes the performance drastically due to the alarm() calls).
> >
> > Dean
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Igor Tatarinov, graduate student, Computer Science Dept, NDSU
> e-mail: tatarino@prairie.nodak.edu or itat@acm.org
> http://www.cs.ndsu.nodak.edu/~tatarino
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
Re: gprof under linux
Posted by Igor Tatarinov <ta...@prairie.NoDak.edu>.
Is it possible to do the same on Solaris?
igor
Dean Gaudet wrote:
>
> If you use Linux and want to get useful gprof numbers for apache... and
> pretty much any program that has a heavy libc component, then visit
> <http://www.arctic.org/~dgaudet/linux/> I'm starting to build RPMs of the
> tweaks I make to redhat 4.2 for useability.
>
> There's an extra tweak in the libc that makes it useful for running gprof
> against a standalone apache... as opposed to running with -X (which
> changes the performance drastically due to the alarm() calls).
>
> Dean
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Igor Tatarinov, graduate student, Computer Science Dept, NDSU
e-mail: tatarino@prairie.nodak.edu or itat@acm.org
http://www.cs.ndsu.nodak.edu/~tatarino
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~