c06d2d1dcbca58683a66db1dad6643d334413733
Author: Mark Story
Date: 2009-08-17 22:18:28 -0400
diff --git a/vendors/css/debug_toolbar.css b/vendors/css/debug_toolbar.css
index 581bb9d..85a7f52 100644
--- a/vendors/css/debug_toolbar.css
+++ b/vendors/css/debug_toolbar.css
@@ -175,6 +175,10 @@
#debug-kit-toolbar table.debug-table tr.even td {
background:#f7f7f7;
}
+#debug-kit-toolbar .debug-timers .debug-table td:nth-child(2),
+#debug-kit-toolbar .debug-timers .debug-table th:nth-child(2) {
+ text-align:right;
+}
/** code tables **/
#debug-kit-toolbar .code-table td {
diff --git a/views/elements/timer_panel.ctp b/views/elements/timer_panel.ctp
index 63cdc1e..917b59c 100644
--- a/views/elements/timer_panel.ctp
+++ b/views/elements/timer_panel.ctp
@@ -49,22 +49,20 @@ endif;
?>
</div>
-<div class="debug-info">
+<div class="debug-info debug-timers">
<h2><?php __d('debug_kit', 'Timers'); ?></h2>
<div class="request-time">
<?php $totalTime = sprintf(__d('debug_kit', '%s (ms)', true), $number->precision($requestTime * 1000, 0)); ?>
<?php echo $toolbar->message(__d('debug_kit', 'Total Request Time:', true), $totalTime)?>
</div>
-</div>
-
<?php
$rows = array();
$end = end($timers);
$maxTime = $end['end'];
$headers = array(
- __d('debug_kit', 'Message', true),
- __d('debug_kit', 'Time in ms', true),
+ __d('debug_kit', 'Message', true),
+ __d('debug_kit', 'Time in ms', true),
__d('debug_kit', 'Graph', true)
);
@@ -81,10 +79,10 @@ foreach ($timers as $timerName => $timeInfo):
$indent = str_repeat(' ยป ', $indent);
$rows[] = array(
$indent . $timeInfo['message'],
- $number->precision($timeInfo['time'] * 1000, 0),
+ $number->precision($timeInfo['time'] * 1000, 2),
$simpleGraph->bar(
$number->precision($timeInfo['time'] * 1000, 2),
- $number->precision($timeInfo['start'] * 1000, 2),
+ $number->precision($timeInfo['start'] * 1000, 2),
array(
'max' => $maxTime * 1000,
'requestTime' => $requestTime * 1000,
@@ -99,4 +97,5 @@ echo $toolbar->table($rows, $headers, array('title' => 'Timers'));
if (!isset($debugKitInHistoryMode)):
$toolbar->writeCache('timer', compact('timers', 'currentMemory', 'peakMemory', 'requestTime'));
endif;
-?>
\ No newline at end of file
+?>
+</div>
\ No newline at end of file
diff --git a/views/helpers/simple_graph.php b/views/helpers/simple_graph.php
index 79a701f..2b8bdda 100644
--- a/views/helpers/simple_graph.php
+++ b/views/helpers/simple_graph.php
@@ -42,7 +42,7 @@ class SimpleGraphHelper extends AppHelper {
*/
var $__defaultSettings = array(
'max' => 100,
- 'width' => 400,
+ 'width' => 350,
'valueType' => 'value',
);
/**
