Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
xhprof_footer.php
Go to the documentation of this file.
1 <?php
2 if ( (extension_loaded('xhprof')) && DO_XHPROF_STATS ) {
3  $profiler_namespace = 'alternc'; // namespace for your application
4  $xhprof_data = xhprof_disable();
5  $xhprof_runs = new XHProfRuns_Default();
6  $run_id = $xhprof_runs->save_run($xhprof_data, $profiler_namespace);
7 
8  // url to the XHProf UI libraries (change the host name and path)
9  $profiler_url = sprintf('/xhprof/xhprof_html/index.php?run=%s&amp;source=%s', $run_id, $profiler_namespace);
10  echo '<p><h3><a href="'. $profiler_url .'" target="_blank">Profiler output</a></h3></p>';
11 }
12 ?>