diff options
author | admin <devnull@localhost> | 2006-10-03 07:28:00 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-03 07:28:00 +0200 |
commit | 08f6020b0085842d4ae81949a0f4886c94158a55 (patch) | |
tree | d0b94a90f1d374c4fbc05160b12a1df07b7f52b1 /system/libraries/Benchmark.php | |
parent | 2e949ec0c98da2b28b67c12445fb4e6b2f838223 (diff) |
Diffstat (limited to 'system/libraries/Benchmark.php')
-rw-r--r-- | system/libraries/Benchmark.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/system/libraries/Benchmark.php b/system/libraries/Benchmark.php index feedbf570..d29e91798 100644 --- a/system/libraries/Benchmark.php +++ b/system/libraries/Benchmark.php @@ -48,7 +48,6 @@ class CI_Benchmark { { $this->marker[$name] = microtime(); } - // END mark() // -------------------------------------------------------------------- @@ -81,39 +80,6 @@ class CI_Benchmark { return number_format(($em + $es) - ($sm + $ss), $decimals); } - // END elapsed_time() - - // -------------------------------------------------------------------- - - /** - * Auto Profiler - * - * This function cycles through the entire array of mark points and - * matches any two points that are named identially (ending in "_start" - * and "_end" respectively). It then compiles the execution times for - * all points and returns it as an array - * - * @access public - * @return array - */ - function auto_profiler() - { - $marker_keys = array_reverse(array_keys($this->marker)); - - $times = array(); - foreach ($marker_keys as $val) - { - if (preg_match("/(.+?)_start/i", $val, $match)) - { - if (isset($this->marker[$match[1].'_end'])) - { - $times[$match[1]] = $this->elapsed_time($val, $match[1].'_end'); - } - } - } - - return $times; - } // -------------------------------------------------------------------- @@ -132,7 +98,6 @@ class CI_Benchmark { { return '{memory_usage}'; } - // END memory_usage() } |