Beispiel #1
0
 /**
  * Reset collected statistics for specified timer or for whole profiler if timer name is omitted
  *
  * @param string|null $timerName
  */
 public static function reset($timerName = null)
 {
     if ($timerName === null) {
         self::$_timers = array();
         self::$_currentPath = array();
         return;
     }
     $timerId = self::_getTimerId($timerName);
     self::$_timers[$timerId] = array('start' => false, self::FETCH_TIME => 0, self::FETCH_COUNT => 0, self::FETCH_REALMEM => 0, self::FETCH_EMALLOC => 0);
 }