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:
Richard Frith-MacDonald 2013-09-04 08:39:24 +00:00
parent 1b3b490941
commit 21c36f07a5

View file

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