lithium\test\filter\Profiler::reset()
Verifies that the corresponding function exists for each built-in profiler check. Initializes display formatters.
Source
public static function reset() {
foreach (static::$_metrics as $name => $check) {
if (is_string($check['function']) && !function_exists($check['function'])) {
unset(static::$_metrics[$name]);
}
}
static::$_formatters = [
'seconds' => function($value) { return number_format($value, 4) . 's'; },
'bytes' => function($value) { return number_format($value / 1024, 3) . 'k'; }
];
}