fixing reset()
This commit is contained in:
parent
a043848904
commit
c36a0eabdb
|
@ -84,20 +84,12 @@ class Profiler implements ContainerInterface
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the performance and callstack profiling
|
* Resets the performance and callstack profiling
|
||||||
*
|
|
||||||
* @param bool $performance If true, reset the performance (Default true)
|
|
||||||
* @param bool $callstack If true, reset the callstack (Default true)
|
|
||||||
*/
|
*/
|
||||||
public function reset($performance = true, $callstack = true)
|
public function reset()
|
||||||
{
|
{
|
||||||
if ($performance) {
|
|
||||||
$this->resetPerformance();
|
$this->resetPerformance();
|
||||||
}
|
|
||||||
|
|
||||||
if ($callstack) {
|
|
||||||
$this->resetCallstack();
|
$this->resetCallstack();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the performance profiling data
|
* Resets the performance profiling data
|
||||||
|
|
Loading…
Reference in a new issue