bug-hurd
[Top][All Lists]
Advanced

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

Re: benchmark and profiling


From: Niels Möller
Subject: Re: benchmark and profiling
Date: 01 Jan 2002 15:15:45 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Diego Roversi <diegor@tiscalinet.it> writes:

> Probably the rename is not strictly necessary, btw before running gprof,
> remember to rename back gmon.out to gmon.out. The _mcleanup() forces the
> process to produce the gmon.out file.

I think the writing of profiling information on process exit is
supposed accumulate information if you're running more than one
instance of the profiled program. Unfortunately, the code in gcc-2.x's
libgcc that does this doesn't do any file locking, so you lose if
running several instances simultaneously. I've had this problem when
using gcov a while ago. Is it the same problem you're trying to solve?

The bug is fixed in gcc-3, and I also have a patch for gcc-2.95
somewhere if you're interested.

Regards,
/Niels



reply via email to

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