Profiling forked processes
Steve Gonczi
Steve.Gonczi@networkengines.com
Wed Feb 21 16:21:00 GMT 2001
Greetings,
ÃÂ
This is really a
gprof question, but it needs a bit of a preamble:
ÃÂ
I am attempting to
profile smbd 2.0.7. This app forks a bunch of worker
processes.
My gmon.out looks
out of sorts.. e.g.: a huge amount of time is charged to
_syscall_sys_fork , and the
self/total time of _syscall_sys_fork is exactly the
same.
My OS is BSDI
4.1.
ÃÂ
Based on the above, I jump to the
conclusion that the main process is getting
profiled,
but the workers do not.
A m I right?
ÃÂ
I see support for the PROFDIR (GPROFDIR?)
environmental variable to afford a way of
dealing with this in some versions of
gprof, at least on some OS -es.
ÃÂ
-How can I determine
if the current, mainline gprof in binutils 2.10.1 has support for
this?
(Perhaps this
feature is proprietary to some UNIX-es such as HP-UX, Compaq true64,
and
NetBSD...)
ÃÂ
-Is there some other
way of profiling a forked process?
ÃÂ
TIA
ÃÂ
/sG
More information about the Binutils
mailing list