Kohana 3 :: Debugging Profiling


Kohana provides a very simple way to display statistics about your application:
  1. Common Kohana method calls
  2. Requests
  3. Database queries
  4. Average execution times for 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

Requests0.127820 S
1,484.8359 KB
benchmarkminmaxaveragetotal
"guide/debugging.profiling" (1)
0.128040 S
0.128040 S
0.128040 S
0.128040 S
1,495.7734 KB
1,495.7734 KB
1,495.7734 KB
1,495.7734 KB
Kohana0.053705 S
3.5703 KB
benchmarkminmaxaveragetotal
find_file (4)
0.004047 S
0.039900 S
0.013426 S
0.053705 S
0.7969 KB
0.9609 KB
0.8926 KB
3.5703 KB
Application Execution (472)0.041169 S0.481089 S0.096263 S0.174879 S
2,611.2891 KB2,736.0156 KB2,699.7453 KB2,715.9375 KB

0 comments:

Post a Comment