Skip to content

Commit 138ff3d

Browse files
authored
$group arg support on measure method (php-debugbar#775)
1 parent 8f79358 commit 138ff3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DebugBar/DataCollector/TimeDataCollector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,13 @@ public function addMeasure($label, $start, $end, $params = array(), $collector =
164164
* @param string $label
165165
* @param \Closure $closure
166166
* @param string|null $collector
167+
* @param string|null $group
167168
* @return mixed
168169
*/
169-
public function measure($label, \Closure $closure, $collector = null)
170+
public function measure($label, \Closure $closure, $collector = null, $group = null)
170171
{
171172
$name = spl_object_hash($closure);
172-
$this->startMeasure($name, $label, $collector);
173+
$this->startMeasure($name, $label, $collector, $group);
173174
$result = $closure();
174175
$params = is_array($result) ? $result : array();
175176
$this->stopMeasure($name, $params);

0 commit comments

Comments
 (0)