$dataFormater
$dataFormater :
Collects info about the request duration as well as providing a way to log duration of any operations
setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface $formater)
Sets the default data formater instance used by all collectors subclassing this class
\DebugBar\DataFormatter\DataFormatterInterface | $formater |
getDefaultDataFormatter() : \DebugBar\DataFormatter\DataFormatterInterface
Returns the default data formater
setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface $formater) : $this
Sets the data formater instance used by this collector
\DebugBar\DataFormatter\DataFormatterInterface | $formater |
getDataFormatter() : \DebugBar\DataFormatter\DataFormatterInterface
None found |
None found |
None found |
startMeasure(string $name, string|null $label = null, string|null $collector = null)
Starts a measure
string | $name | Internal name, used to stop the measure |
string|null | $label | Public name |
string|null | $collector | The source of the collector |
None found |
hasStartedMeasure(string $name) : boolean
Check a measure exists
string | $name |
None found |
stopMeasure(string $name, array $params = array())
Stops a measure
string | $name | |
array | $params |
None found |
addMeasure(string $label, float $start, float $end, array $params = array(), string|null $collector = null)
Adds a measure
string | $label | |
float | $start | |
float | $end | |
array | $params | |
string|null | $collector |
None found |
measure(string $label, \Closure $closure, string|null $collector = null)
Utility function to measure the execution of a Closure
string | $label | |
\Closure | $closure | |
string|null | $collector |
None found |
None found |
None found |
None found |