public startMeasure ( string $name, string $label = null ) | ||
$name | string | Internal name, used to stop the measure |
$label | string | Public name |
public function startMeasure($name, $label = null)
{
if ($this->hasCollector('time')) {
/** @var \DebugBar\DataCollector\TimeDataCollector $collector */
$collector = $this->getCollector('time');
$collector->startMeasure($name, $label);
}
}
/** * Starts a measure * * @param string $name Internal name, used to stop the measure * @param string $label Public name * @static */ public static function startMeasure($name, $label = null) { return \Barryvdh\Debugbar\LaravelDebugbar::startMeasure($name, $label); }