Skip to content
Browse files

Fixed load time and memory tabs

  • Loading branch information...
1 parent 79ad355 commit 06ff6673dc3b088810f2a079731df2c7cd0ed82f @steves committed May 1, 2010
Showing with 5 additions and 9 deletions.
  1. +4 −8 Display.php
  2. +1 −1 Profiler.php
View
12 Display.php
@@ -72,10 +72,6 @@ public static function display($output) {
$class = '';
foreach ($output['logs']['console']['messages'] as $log) {
- if (!isset($log['type']) || $log['type'] == 'query') {
- continue;
- }
-
echo '<tr class="log-' . $log['type'] . '"><td class="type">' . $log['type'] . '</td><td class="' . $class . '">';
if ($log['type'] == 'log') {
@@ -110,9 +106,9 @@ public static function display($output) {
echo '<table class="main" cellspacing="0">';
$class = '';
- foreach ($output['logs']['console'] as $log) {
+ foreach ($output['logs']['console']['messages'] as $log) {
if (isset($log['type']) && $log['type'] == 'speed') {
- echo '<tr class="log-' . $log['type'] . '"><td class="' . $class . '">';
+ echo '<tr class="log-speed"><td class="' . $class . '">';
echo '<div><pre>' . $log['data'] . '</pre> <em>' . $log['name'] . '</em></div>';
echo '</td></tr>';
$class = ($class == '') ? 'alt' : '';
@@ -220,9 +216,9 @@ public static function display($output) {
echo '<table class="main" cellspacing="0">';
$class = '';
- foreach ($output['logs']['console'] as $log) {
+ foreach ($output['logs']['console']['messages'] as $log) {
if (isset($log['type']) && $log['type'] == 'memory') {
- echo '<tr class="log-' . $log['type'] . '">';
+ echo '<tr class="log-message">';
echo '<td class="' . $class . '"><b>' . $log['data'] . '</b> <em>' . $log['dataType'] . '</em>: ' . $log['name'] . '</td>';
echo '</tr>';
$class = ($class == '') ? 'alt' : '';
View
2 Profiler.php
@@ -91,7 +91,7 @@ public function gatherConsoleData() {
break;
case 'memory':
$data['type'] = 'memory';
- $data['data'] = $this->getReadableFileSize($message['data']);
+ $data['data'] = $this->getReadableFileSize($data['data']);
break;
case 'speed':
$data['type'] = 'speed';

0 comments on commit 06ff667

Please sign in to comment.
Something went wrong with that request. Please try again.