src/Helpers/XHProf.php
public static function finish()
    {
        if (self::$_isEnabled && function_exists("xhprof_disable")) {
            $xhprof_data = xhprof_disable();
            include_once self::getPath() . "/xhprof_lib/utils/xhprof_lib.php";
            include_once self::getPath() . "/xhprof_lib/utils/xhprof_runs.php";
            $xhprof_runs = new \XHProfRuns_Default();
            $run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_testing");
            echo "<div style=\"text-align:center\">xhprof id: <a target=\"_target\" href=\"" . self::getUrl() . "$run_id\">$run_id</a></div>";
        }
        self::$_isEnabled=false;
    }
public static function finish()
    {
        if (self::$_isEnabled && function_exists("xhprof_disable")) {
            $xhprof_data = xhprof_disable();
            include_once self::getPath() . "/xhprof_lib/utils/xhprof_lib.php";
            include_once self::getPath() . "/xhprof_lib/utils/xhprof_runs.php";
            $xhprof_runs = new \XHProfRuns_Default();
            $run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_testing");
            echo "<div style=\"text-align:center\">xhprof id: <a target=\"_target\" href=\"" . self::getUrl() . "$run_id\">$run_id</a></div>";
        }
        self::$_isEnabled=false;
    }
Finish XHProf