Browse Source

fixing reset()

tags/2019.03^2
Philipp Holzer 9 months ago
parent
commit
c36a0eabdb
No account linked to committer's email address
1 changed files with 3 additions and 11 deletions
  1. 3
    11
      src/Util/Profiler.php

+ 3
- 11
src/Util/Profiler.php View File

@@ -84,19 +84,11 @@ class Profiler implements ContainerInterface

/**
* 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();
}

if ($callstack) {
$this->resetCallstack();
}
$this->resetPerformance();
$this->resetCallstack();
}

/**

Loading…
Cancel
Save