Added memory peak to the internal profiling instrumentation

SVN:trunk[799]
This commit is contained in:
Romain Quetiez
2010-09-08 20:01:06 +00:00
parent 3f0b5ca63a
commit a3f4dad24e

View File

@@ -116,6 +116,11 @@ class ExecutionKPI
$iMemory = self::memory_get_usage();
$iMemoryUsed = $iMemory - $this->m_iInitialMemory;
$this->Report($sOperationDesc.' / memory: '.self::MemStr($iMemoryUsed).' (Total: '.self::MemStr($iMemory).')');
if (function_exists('memory_get_peak_usage'))
{
$iMemoryPeak = memory_get_peak_usage();
$this->Report($sOperationDesc.' / memory peak: '.self::MemStr($iMemoryPeak));
}
}
$this->ResetCounters();