diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 32c08c8..65ca354 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -52,6 +52,7 @@
$BM =& _load_class('Benchmark');
$BM->mark('total_execution_time_start');
+$BM->mark('loading_time_base_clases_start');
/*
* ------------------------------------------------------
@@ -130,6 +131,9 @@
require(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().EXT);
+$BM->mark('loading_time_base_clases_end');
+
+
/*
* ------------------------------------------------------
* Security check
@@ -142,6 +146,7 @@
$class = $RTR->fetch_class();
$method = $RTR->fetch_method();
+
if ( ! class_exists($class)
OR $method == 'controller'
OR substr($method, 0, 1) == '_'
@@ -163,6 +168,10 @@
* Instantiate the controller and call requested method
* ------------------------------------------------------
*/
+
+// Mark a start point so we can benchmark the controller
+$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
+
$CI = new $class();
if ($RTR->scaffolding_request === TRUE)
@@ -180,11 +189,6 @@
* ------------------------------------------------------
*/
$EXT->_call_hook('post_controller_constructor');
-
- if ($method == $class)
- {
- $method = 'index';
- }
if (method_exists($CI, '_remap'))
{
@@ -203,6 +207,9 @@
}
}
+// Mark a benchmark end point
+$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
+
/*
* ------------------------------------------------------
* Is there a "post_controller" hook?