/** * Reset accumulators values so far: either a single one or all of them. * NB: also clears the ezdebug accumulators */ public static function accumulatorReset($val = null) { if ($val === null) { self::$timeAccumulatorList = array(); if (eZPerfLoggerDebug::isDebugEnabled()) { $debug = eZDebug::instance(); $debug->TimeAccumulatorList = array(); } } else { unset(self::$timeAccumulatorList[$val]); } }