|
|
@@ -24,6 +24,9 @@ class DebugExecutionTime {
|
|
|
$this->_isActive = true;
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * @param $msg string or NULL (NULL to log only group stats)
|
|
|
+ */
|
|
|
public function log($msg, $groups = array()) {
|
|
|
if (!$this->_isActive) return;
|
|
|
$curTime = microtime(true);
|
|
|
@@ -76,6 +79,7 @@ class DebugExecutionTime {
|
|
|
</tfoot>
|
|
|
<tbody>
|
|
|
<?php foreach ($this->_log as $log) : ?>
|
|
|
+ <?php if (null === $log[0]) continue; ?>
|
|
|
<tr>
|
|
|
<td><?php echo $log[0]; ?></td>
|
|
|
<td style="font-family:monospace;text-align:right;"><?php echo number_format($log[1], 6); ?></td>
|