[eluser]robertorubioes[/eluser]
How to know what objects are loaded in your application you should include this code
File index.php
Code:
$GLOBALS['application_process'] = array();
File system/codeigniter/Common.php in function load_class this code:
Code:
$app_process = $GLOBALS['application_process'];
if(!isset($app_process[$class]))
{
$app_process[$class] = 0;
}
$app_process[$class] += 1;
$GLOBALS['application_process'] = $app_process;
File system/libraries/Profiler
add this method
Code:
function _compile_process()
{
$output = "\n\n";
$output .= '<fieldset style="border:1px solid #5a0099;padding:6px 10px 10px 10px;margin:20px 0 20px 0;background-color:#eee">';
$output .= "\n";
$output .= '<legend style="color:#5a0099;"> Process RUN aplications </legend>';
$output .= "\n";
foreach($GLOBALS['application_process']as $name => $val)
{
$output .= "<div style='color:#5a0099;font-weight:normal;padding:4px 0 4px 0'>The class ".$name." is load ".$val." times </div>";
}
$output .= "</fieldset>";
return $output;
}
and add source in method run()
Code:
$output .= $this->_compile_process();
Now, only load profiler in your view.