mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-05-30 00:40:42 +00:00
report unleaked memory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@37039 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b3b490941
commit
21c36f07a5
1 changed files with 11 additions and 2 deletions
13
EcProcess.m
13
EcProcess.m
|
@ -2090,8 +2090,17 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
|
|||
*/
|
||||
if (average > (memAllowed * 1024 * 1024))
|
||||
{
|
||||
[self cmdError: @"Average memory usage grown to %"PRIuPTR"KB",
|
||||
average / 1024];
|
||||
if (notLeaked > 1024)
|
||||
{
|
||||
[self cmdError: @"Average heap usage grown to %"PRIuPTR
|
||||
"KB (plus %"PRIuPTR"KB not leaked)",
|
||||
average / 1024, notLeaked / 1024];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self cmdError: @"Average heap usage grown to %"PRIuPTR"KB",
|
||||
average / 1024];
|
||||
}
|
||||
}
|
||||
|
||||
/* Set the peak memory from the last set of readings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue