function xhprof_build_link in XHProf 6
2 calls to xhprof_build_link()
- xhprof_shutdown in ./
xhprof.module - See xhprof_start() which registers this function as a shutdown function.
- xhprof_shutdown_real in ./
xhprof.module - See xhprof_shutdown() which registers this function as a shutdown function. Displays xhprof link in the footer.
File
- ./
xhprof.module, line 180
Code
function xhprof_build_link($run_id, $type = 'link') {
global $base_path;
$namespace = variable_get('site_name', '');
// namespace for your application
$url = $base_path . XHPROF_PATH . '/' . $run_id;
return $type == 'url' ? $url : t('<a href="@xhprof">XHProf output</a>.', array(
'@xhprof' => $url,
)) . ' ';
}