You are here

function devel_shutdown_xhprof in Devel 6

1 call to devel_shutdown_xhprof()
devel_shutdown_xhprof_drush in ./devel.module
Log URL to Drush log if this is a drush request.

File

./devel.module, line 930

Code

function devel_shutdown_xhprof() {
  $namespace = devel_xhprof_get_namespace();

  // namespace for your application
  $xhprof_data = xhprof_disable();
  $xhprof_runs = new XHProfRuns_Default();
  return $xhprof_runs
    ->save_run($xhprof_data, $namespace);
}