function xh_link

8.0.x xh.drush.inc xh_link($run_id)
7.x xh.drush.inc xh_link($run_id)
master xh.drush.inc xh_link($run_id)

Returns the XHProf link.

1 call to xh_link()
xh_drush_exit in commands/xh.drush.inc
Implements hook_drush_exit().

File

commands/xh.drush.inc, line 69

Code

function xh_link($run_id) {
  if ($xhprof_url = trim(drush_get_option('xh-link'))) {
    $namespace = 'Drush'; //variable_get('site_name', '');
    return $xhprof_url . '/index.php?run=' . urlencode($run_id) . '&source=' . urlencode($namespace);
  }
  else {
    drush_log('Configure xh_link in order to see a link to the XHProf report for this request instead of this message.');
  }
}