original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets up XHProf so that we can profile phpDocumentor using XHGUI.
  
  @return self
docstring_tokens: Sets up XHProf so that we can profile phpDocumentor using XHGUI .