Profiling
Kohana provides a very simple way to display statistics about your application:
Example
You can display or collect the current profiler statistics at any time:
<div id="kohana-profiler">
<?php echo View::factory('profiler/stats') ?>
</div>
Preview
| Requests | 0.222264 s | |||
|---|---|---|---|---|
| 517.1953 kB | ||||
| Benchmark | Min | Max | Average | Total |
| "guide/debugging.profiling" (1) |
0.222591 s
|
0.222591 s
|
0.222591 s
|
0.222591 s
|
|
523.9844 kB
|
523.9844 kB
|
523.9844 kB
|
523.9844 kB
|
|
| Kohana | 0.181855 s | |||
|---|---|---|---|---|
| 19.3984 kB | ||||
| Benchmark | Min | Max | Average | Total |
| find_file (45) |
0.000027 s
|
0.180043 s
|
0.004041 s
|
0.181855 s
|
|
0.3672 kB
|
0.6172 kB
|
0.4311 kB
|
19.3984 kB
|
|
| Application Execution (1) | 0.242605 s | 0.242605 s | 0.242605 s | 0.242605 s |
|---|---|---|---|---|
| 852.8750 kB | 852.8750 kB | 852.8750 kB | 852.8750 kB |