예제 #1
0
 /**
  * Disable profiling.
  * Any call to profiler is silently ignored while profiler is disabled.
  */
 public static function disable()
 {
     self::$_enabled = false;
 }
예제 #2
0
 /**
  * Reset profiler to initial state
  */
 public static function reset()
 {
     self::clear();
     self::$_enabled = false;
     self::$_currentPath = array();
     self::$_tagFilters = array();
     self::$_defaultTags = array();
     self::$_hasTagFilters = false;
     self::$_drivers = array();
     self::$_pathCount = 0;
     self::$_pathIndex = array();
 }