Synchro: keep track of the memory usage peak (SynchroLog), should the synchro be executed at once or in several steps

SVN:trunk[1733]
This commit is contained in:
Romain Quetiez
2011-12-21 08:52:14 +00:00
parent 9ac4f84e22
commit 72ac150faa
2 changed files with 14 additions and 0 deletions

View File

@@ -191,6 +191,16 @@ class ExecutionKPI
return $output[1] * 1024;
}
}
static public function memory_get_peak_usage($bRealUsage = false)
{
if (function_exists('memory_get_peak_usage'))
{
return memory_get_peak_usage($bRealUsage);
}
// PHP > 5.2.1 - this verb depends on a compilation option
return 0;
}
}
class ApplicationStartupKPI extends ExecutionKPI