You are here

function devel_shutdown_xhprof_drush in Devel 6

Log URL to Drush log if this is a drush request.

This shutdown function is registered by devel_xhprof_enable()

1 string reference to 'devel_shutdown_xhprof_drush'
devel_xhprof_enable in ./devel.module

File

./devel.module, line 843

Code

function devel_shutdown_xhprof_drush() {
  global $devel_run_id;
  $devel_run_id = variable_get('devel_xhprof_enabled', FALSE) ? devel_shutdown_xhprof() : NULL;
  if ($devel_run_id && function_exists('drush_log')) {
    drush_log('xhprof link: ' . devel_xhprof_link($devel_run_id, 'url'), 'notice');
  }
}