예제 #1
0
 /**
  * Enable profiling.
  * Any call to profiler does nothing until profiler is enabled.
  */
 public static function enable()
 {
     if (!self::$_isInitialized) {
         register_shutdown_function(array(__CLASS__, 'display'));
         self::$_isInitialized = true;
     }
     self::$_enabled = true;
 }
예제 #2
0
 /**
  * Enable profiling.
  * Any call to profiler does nothing until profiler is enabled.
  */
 public static function enable()
 {
     if (!self::$_isInitialized) {
         static::_initialize();
         self::$_isInitialized = true;
     }
     self::$_enabled = true;
 }