function xh_drush_init

8.0.x xh.drush.inc xh_drush_init()
7.x xh.drush.inc xh_drush_init()
master xh.drush.inc xh_drush_init()

Implements hook_drush_init().

File

commands/xh.drush.inc, line 40

Code

function xh_drush_init() {
  if (xh_enabled()) {
    if ($path = drush_get_option('xh-path', '')) {
      include_once $path . '/xhprof_lib/utils/xhprof_lib.php';
      include_once $path . '/xhprof_lib/utils/xhprof_runs.php';
      xhprof_enable(); // @todo support custom flags
    }
  }
}