|
@@ 214-237 (lines=24) @@
|
| 211 |
|
|
| 212 |
|
echo '<div id="pqp-speed" class="pqp-box">'; |
| 213 |
|
|
| 214 |
|
if($this->console_data['count']['speed'] == 0) { |
| 215 |
|
echo '<h3>This panel has no log items.</h3>'; |
| 216 |
|
} |
| 217 |
|
else { |
| 218 |
|
echo '<table class="side" cellspacing="0"> |
| 219 |
|
<tr><td><var>'.$output['speedTotals']['total'].'</var><h4>Load Time</h4></td></tr> |
| 220 |
|
<tr><td class="alt"><var>'.$output['speedTotals']['allowed'].'</var> <h4>Max Execution Time</h4></td></tr> |
| 221 |
|
</table> |
| 222 |
|
<table class="main" cellspacing="0">'; |
| 223 |
|
|
| 224 |
|
$class = ''; |
| 225 |
|
foreach($this->console_data['messages'] as $log) { |
| 226 |
|
if($log['type'] == 'speed') { |
| 227 |
|
echo '<tr class="log-'.$log['type'].'"> |
| 228 |
|
<td class="'.$class.'">'; |
| 229 |
|
echo '<div><pre>'.$log['data'].'</pre> <em>'.$log['name'].'</em></div>'; |
| 230 |
|
echo '</td></tr>'; |
| 231 |
|
if($class == '') $class = 'alt'; |
| 232 |
|
else $class = ''; |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
echo '</table>'; |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
echo '</div>'; |
| 240 |
|
|
|
@@ 282-305 (lines=24) @@
|
| 279 |
|
if($this->console_data['count']['memory'] == 0) { |
| 280 |
|
echo '<h3>This panel has no log items.</h3>'; |
| 281 |
|
} |
| 282 |
|
else { |
| 283 |
|
echo '<table class="side" cellspacing="0"> |
| 284 |
|
<tr><td><var>'.$output['memoryTotals']['used'].'</var><h4>Used Memory</h4></td></tr> |
| 285 |
|
<tr><td class="alt"><var>'.$output['memoryTotals']['total'].'</var> <h4>Total Available</h4></td></tr> |
| 286 |
|
</table> |
| 287 |
|
<table class="main" cellspacing="0">'; |
| 288 |
|
|
| 289 |
|
$class = ''; |
| 290 |
|
foreach($this->console_data['messages'] as $log) { |
| 291 |
|
if($log['type'] == 'memory') { |
| 292 |
|
echo '<tr class="log-'.$log['type'].'">'; |
| 293 |
|
echo '<td class="'.$class.'"><b>'.$log['data'].'</b>'; |
| 294 |
|
if ($log['data_type']) { |
| 295 |
|
echo '<em>'.$log['data_type'].'</em>: '; |
| 296 |
|
} |
| 297 |
|
echo $log['name'].'</td>'; |
| 298 |
|
echo '</tr>'; |
| 299 |
|
if($class == '') $class = 'alt'; |
| 300 |
|
else $class = ''; |
| 301 |
|
} |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
echo '</table>'; |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
echo '</div>'; |
| 308 |
|
|