lithium\test\filter\Profiler::$_metrics
Contains the list of profiler checks to run against each test. Values can be string function names, arrays containing function names as the first key and function parameters as subsequent keys, or closures.
Source
protected static $_metrics = [
'Time' => [
'function' => ['microtime', true],
'format' => 'seconds'
],
'Current Memory' => [
'function' => 'memory_get_usage',
'format' => 'bytes'
],
'Peak Memory' => [
'function' => 'memory_get_peak_usage',
'format' => 'bytes'
],
'Current Memory (Xdebug)' => [
'function' => 'xdebug_memory_usage',
'format' => 'bytes'
],
'Peak Memory (Xdebug)' => [
'function' => 'xdebug_peak_memory_usage',
'format' => 'bytes'
]
];