This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Profiling forked processes
- To: Steve Gonczi <Steve dot Gonczi at networkengines dot com>
- Subject: Re: Profiling forked processes
- From: jtc at redback dot com (J.T. Conklin)
- Date: 26 Feb 2001 10:13:15 -0800
- Cc: "'binutils at sourceware dot cygnus dot com'" <binutils at sourceware dot cygnus dot com>
- References: <40B9F6A0587D9D4CB1872FD7E1449672044290@NEIMAIL2.NetworkEngines.Com>
- Reply-To: jtc at redback dot com
>>>>> "Steve" == Steve Gonczi <Steve.Gonczi@networkengines.com> writes:
Steve> I see support for the PROFDIR (GPROFDIR?) environmental
Steve> variable to afford a way of dealing with this in some versions
Steve> of gprof, at least on some OS-es.
Steve> -How can I determine if the current, mainline gprof in binutils
Steve> 2.10.1 has support for this? (Perhaps this feature is
Steve> proprietary to some UNIX-es such as HP-UX, Compaq true64, and
Steve> NetBSD...)
PROFDIR (or an equivalent mechanism) will be implemented as part of
the C library, so a binutils gprof won't be able to help you out there.
However, since BSDI and NetBSD share a common heritage, it might be
possible for you to take src/lib/libc/gmon/gmon.c from NetBSD's libc,
compile it on BSDI, and link it into your application.
--jtc
--
J.T. Conklin
RedBack Networks