bug-gnu-utils
[Top][All Lists]
Advanced

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

re: gprof and fork()


From: jonathan bright
Subject: re: gprof and fork()
Date: Wed, 29 Aug 2001 09:54:26 -0700

oops.
the attachments to the last post didn't make sense,
so i'll repeat the information here:

i have a program that forks a child, and the child then
does a big loop.  when the child exits, i get a gmon.out
file, but when i run gprof, near the top of the output
is the phrase "no time accumulated", and indeed no time
information is given.  the parent just sleeps after
the child finishes, so this is probably not the problem
with having the parent's gmon.out overwrite the child's gmon.out.

here is the relevant information:

gprof = gnu gprof 2.10.91
ldd reports libc-2.2.2.so

i also tried on another system with gprof 2.10.91 and libc-2.1.92.so

i tried adding in a call to __monstartup() as the first
thing that the child does but that didn't work.

any ideas?

--
jonathan bright
address@hidden
415.820.7322 - voicemail/fax
www.brightconsulting.com

Attachment: c.c
Description: Binary data

Attachment: gm
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]