Exemplo n.º 1
0
 /**
  * Overriding the default "Run the Profiler"
  *
  * @access	private
  * @return	string
  */
 function run()
 {
     // Uncomment to still show the CI Profiler
     // ---------------------------------------
     // $output = parent::run();
     // return $output;
     $output = '';
     if (class_exists('pqp_pi') && isset(pqp_pi::$pqp_instance)) {
         pqp_pi::pqp_benchmark_results();
         $output .= pqp_pi::$pqp_instance->display(pqp_pi::gen_pqp_db_results());
     }
     return $output;
 }
 static function load_pqp()
 {
     $dir = dirname(__FILE__);
     require_once $dir . '/pqp/classes/PhpQuickProfiler.php';
     pqp_pi::$pqp_instance = new PhpQuickProfiler(PhpQuickProfiler::getMicroTime());
 }