Skip to content

Custom profiler overdiv

World Wide Web Server edited this page Jul 4, 2012 · 11 revisions

Category:Core::Profiler

Custom profiler, similar in function to Kohana profiler, overdiv on top and hidden, activated by mouse click.

Uses jQuery, Hope can be a base to make a better visual profiler.

[code] <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class MY_Profiler extends CI_Profiler { function MY_profiler() { parent::CI_Profiler(); }

function run()
{

// START JQueryLoad
// Remove if you load Jquery else where $output = '[removed][removed]'; $output = '[removed][removed]'; // End JQueryLoad $output .= '[removed]'."\n"; $output .= '[removed]'."\n"; $i_currentDIV = rand(10,99).substr(md5($_SERVER["REQUEST_URI"]),0,6); $output .= "

"; $output .= " X "; $output .= "
"; $output .= "
"; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= "
URI Controler Memory Benchmarks Variables SQL <<<<
"; $output .= "
"; $output .= $this->_compile_uri_string(); $output .= "
"; $output .= "
"; $output .= $this->_compile_controller_info(); $output .= "
"; $output .= "
"; $output .= $this->_compile_memory_usage(); $output .= "
"; $output .= "
"; $output .= $this->_compile_benchmarks(); $output .= "
"; $output .= "
"; $output .= $this->_compile_get(); $output .= $this->_compile_post(); $output .= "
"; $output .= "
"; $output .= $this->_compile_queries(); $output .= "
"; $output .= "
"; $output .= "
"; return $output; } } [/code]
Clone this wiki locally