×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Roman Ignatov
Added: Nov 24, 2016 4:33 PM
Views: 14
  1. <?php
  2.  
  3.  
  4. if (extension_loaded('xhprof') && !empty($_GET['xhprof'])) {
  5.     include_once '/usr/share/php/xhprof_lib/utils/xhprof_lib.php';
  6.     include_once '/usr/share/php/xhprof_lib/utils/xhprof_runs.php';
  7.  
  8.     xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
  9. }
  10.