/** * Stop xhprof profiler * * @return array|null xhprof data from the run, or null if xhprof was not running. */ public static function disable() { if (self::isEnabled()) { self::$enabled = false; return xhprof_disable(); } }