public function registerProfiler()
    {
        // check whether xhprof is loaded
        $profile = (bool) (getenv('PHPDOC_PROFILE') === 'on');
        $xhguiPath = getenv('XHGUI_PATH');
        if ($profile && $xhguiPath && extension_loaded('xhprof')) {
            echo 'PROFILING ENABLED' . PHP_EOL;
            include($xhguiPath . '/external/header.php');
        }

        return $this;
    }
public function registerProfiler()
    {
        // check whether xhprof is loaded
        $profile = (bool) (getenv('PHPDOC_PROFILE') === 'on');
        $xhguiPath = getenv('XHGUI_PATH');
        if ($profile && $xhguiPath && extension_loaded('xhprof')) {
            echo 'PROFILING ENABLED' . PHP_EOL;
            include($xhguiPath . '/external/header.php');
        }

        return $this;
    }
public function registerProfiler ( ) { // check whether xhprof is loaded $ profile = ( bool ) ( getenv ( 'PHPDOC_PROFILE' ) === 'on' ) ; $ xhguiPath = getenv ( 'XHGUI_PATH' ) ; if ( $ profile && $ xhguiPath && extension_loaded ( 'xhprof' ) ) { echo 'PROFILING ENABLED' . PHP_EOL ; include ( $ xhguiPath . '/external/header.php' ) ; } return $ this ; }
Sets up XHProf so that we can profile phpDocumentor using XHGUI.

@return self
Sets up XHProf so that we can profile phpDocumentor using XHGUI .