<div id="debug-benchmarks" class="top" style="display: none;"> <h1>Benchmarks</h1> <table cellspacing="0" cellpadding="0"> <tr> <th align="left">benchmark</th> <th align="right">count</th> <th align="right">avg time</th> <th align="right">total time</th> <th align="right">avg memory</th> <th align="right">total memory</th> </tr> <?php if (count(Debugger::get_benchmark_groups())) { ?> <?php foreach (Debugger::get_benchmark_groups() as $group => $marks) { ?> <tr> <th colspan="6"><?php echo $group; ?> </th> </tr> <?php foreach ($marks as $benchmark) { ?> <tr class="<?php echo Text::alternate('odd', 'even'); ?> "> <td align="left"><?php
/** * Collect the data * * @static */ protected static function _collect_data() { Debugger::get_benchmark_application(); if (Kohana::$config->load('debugger.panels.benchmarks')) { Debugger::get_benchmark_groups(); } if (Kohana::$config->load('debugger.panels.database')) { Debugger::get_database_queries(); } if (Kohana::$config->load('debugger.panels.files')) { Debugger::get_files(); } if (Kohana::$config->load('debugger.panels.modules')) { Debugger::get_modules(); } if (Kohana::$config->load('debugger.panels.routes')) { Debugger::get_routes(); } if (Kohana::$config->load('debugger.panels.messages')) { Debugger::get_messages(); } if (Kohana::$config->load('debugger.panels.stacktraces')) { Debugger::get_stacktraces(); } }