forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
Custom profiler overdiv
World Wide Web Server edited this page Jul 4, 2012
·
11 revisions
Custom profiler, similar to Kohana profiler, overdiv on top and hidden, activated by mouse click.
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 = <<<ENDJS
[removed][removed]
ENDJS;
// End JQueryLoad
$i_currentDIV = rand(10,99).substr(md5($_SERVER["REQUEST_URI"]),0,6);
$output .= "
";
$output .= "";
$output .= "";
$output .= "";
$output .= "";
$output .= "";
$output .= "";
$output .= "";
$output .= "
";
$output .= '
';
$output .= '';
return $output;
}
}
[/code]
Codeigniter Profiler |
";
$output .= " ";
$output .= $this->_compile_uri_string();
$output .= $this->_compile_controller_info();
$output .= $this->_compile_memory_usage();
$output .= $this->_compile_benchmarks();
$output .= $this->_compile_get();
$output .= $this->_compile_post();
$output .= $this->_compile_queries();
$output .= "
|