Skip to content
This repository
Browse code

Fixed load time and memory tabs

  • Loading branch information...
commit 06ff6673dc3b088810f2a079731df2c7cd0ed82f 1 parent 79ad355
Steven Surowiec authored

Showing 2 changed files with 5 additions and 9 deletions. Show diff stats Hide diff stats

  1. +4 8 Display.php
  2. +1 1  Profiler.php
12 Display.php
@@ -72,10 +72,6 @@ public static function display($output) {
72 72
73 73 $class = '';
74 74 foreach ($output['logs']['console']['messages'] as $log) {
75   - if (!isset($log['type']) || $log['type'] == 'query') {
76   - continue;
77   - }
78   -
79 75 echo '<tr class="log-' . $log['type'] . '"><td class="type">' . $log['type'] . '</td><td class="' . $class . '">';
80 76
81 77 if ($log['type'] == 'log') {
@@ -110,9 +106,9 @@ public static function display($output) {
110 106 echo '<table class="main" cellspacing="0">';
111 107
112 108 $class = '';
113   - foreach ($output['logs']['console'] as $log) {
  109 + foreach ($output['logs']['console']['messages'] as $log) {
114 110 if (isset($log['type']) && $log['type'] == 'speed') {
115   - echo '<tr class="log-' . $log['type'] . '"><td class="' . $class . '">';
  111 + echo '<tr class="log-speed"><td class="' . $class . '">';
116 112 echo '<div><pre>' . $log['data'] . '</pre> <em>' . $log['name'] . '</em></div>';
117 113 echo '</td></tr>';
118 114 $class = ($class == '') ? 'alt' : '';
@@ -220,9 +216,9 @@ public static function display($output) {
220 216 echo '<table class="main" cellspacing="0">';
221 217
222 218 $class = '';
223   - foreach ($output['logs']['console'] as $log) {
  219 + foreach ($output['logs']['console']['messages'] as $log) {
224 220 if (isset($log['type']) && $log['type'] == 'memory') {
225   - echo '<tr class="log-' . $log['type'] . '">';
  221 + echo '<tr class="log-message">';
226 222 echo '<td class="' . $class . '"><b>' . $log['data'] . '</b> <em>' . $log['dataType'] . '</em>: ' . $log['name'] . '</td>';
227 223 echo '</tr>';
228 224 $class = ($class == '') ? 'alt' : '';
2  Profiler.php
@@ -91,7 +91,7 @@ public function gatherConsoleData() {
91 91 break;
92 92 case 'memory':
93 93 $data['type'] = 'memory';
94   - $data['data'] = $this->getReadableFileSize($message['data']);
  94 + $data['data'] = $this->getReadableFileSize($data['data']);
95 95 break;
96 96 case 'speed':
97 97 $data['type'] = 'speed';

0 comments on commit 06ff667

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