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