[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Zone dumping (was Re: leak detection)
From: |
Ralf Stephan |
Subject: |
Zone dumping (was Re: leak detection) |
Date: |
Tue, 8 Feb 2000 21:34:49 +0100 |
> A scratch index you didn't drop?
I should have dumped scratchZone. Thought that globalZone contains
all objects. Grumble.
What would be the most complete set of Zones to dump? Here is a
routine that shows Zone dumping, one just needs to diff the output
files to find coming and going objects:
- (void) debug
{
timeval_t currentSimTime = getCurrentTime();
if (currentSimTime<100) // dump the first 100 steps
{
char fname[8];
FILE *fp;
id debugFileStream;
sprintf (fname, "debug%d", (int)currentSimTime);
fname[sizeof(fname)-1] = 0;
fp = fopen (fname, "w");
debugFileStream =
[OutputStream create: self setFileStream: fp];
[scratchZone describeForEach: debugFileStream];
fclose (fp);
[debugFileStream drop];
}
}
ralf
--
http://www.in-berlin.de/User/rws/
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Re: leak detection, (continued)
- Zone dumping (was Re: leak detection),
Ralf Stephan <=