bug-hurd
[Top][All Lists]
Advanced

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

Re: benchmark and profiling


From: Diego Roversi
Subject: Re: benchmark and profiling
Date: Wed, 2 Jan 2002 21:42:44 +0100
User-agent: Mutt/1.2.5i

On Tue, Jan 01, 2002 at 03:15:45PM +0100, Niels Möller wrote:

> 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.

There was only one istance of the profile-enable ext2 translator. The
problem is the same using gcc 2.95 and gcc-3.0. I think that probably for
some reason after sending the reply to fsys_goway the task is forced to die.
Normally this is not a problem, because the translator close all activities
before replying, but the _mcleanup() is called only when exit() is invoked,
after the reply. For this reason I call _mcleanup() before reply, and rename
the file to avoid that a gmon.out to be overwritten when _mcleanup() is
called a second time from inside exit(). For some misterius reason sleep
helps also...

Thank you.

-- 
Saluti / Regards

Diego Roversi | diegor at maganet.net
              | diegor at tiscalinet.it 



reply via email to

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