1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Improved display of Traffic debug stats.

This commit is contained in:
Cameron
2012-12-15 04:43:14 -08:00
parent 550754029e
commit 8a29674948

View File

@@ -24,11 +24,14 @@ if (!defined('e107_INIT')) { exit; }
// //
if (count($this->aTraffic)) { // Simple counts if (count($this->aTraffic)) { // Simple counts
$text .= "\n<table class='fborder'>\n"; $text .= "\n<table class='fborder table table-condensed table-striped'>\n";
$text .= "<tr><td class='fcaption' style='width:15%'>Item</td> $text .= "<thead>
<td class='fcaption' style='text-align:right;width:15%'>Count&nbsp;</td> <tr>
<td class='fcaption'>&nbsp;</td> <th class='fcaption' style='width:15%'>Item</th>
</tr>\n"; <th class='fcaption' style='text-align:right;width:15%'>Count&nbsp;</th>
<th class='fcaption'>&nbsp;</th>
</tr>
</thead>\n";
foreach ($this->aTraffic as $key=>$aVals) { foreach ($this->aTraffic as $key=>$aVals) {
$text .= "<tr> $text .= "<tr>
<td class='forumheader3'>". <td class='forumheader3'>".
@@ -58,13 +61,20 @@ if (!defined('e107_INIT')) { exit; }
// Fancy timed counts // Fancy timed counts
// //
if (count($this->aTrafficTimed)) { if (count($this->aTrafficTimed)) {
$text .= "\n<table class='fborder'>\n"; $text .= "\n<table class='fborder table table-condensed table-striped'>\n";
$text .= "<tr><td class='fcaption'>Item</td><td class='fcaption'>Count&nbsp;</td> $text .= "
<td class='fcaption'>Tot Time (ms)&nbsp;</td> <thead>
<td class='fcaption'>Avg Time (us)&nbsp;</td> <tr>
<td class='fcaption'>Min Time (us)&nbsp;</td> <th class='fcaption'>Item</th>
<td class='fcaption'>Max Time (us)&nbsp;</td> <th class='fcaption'>Count&nbsp;</th>
</tr>\n"; <th class='fcaption'>Tot Time (ms)&nbsp;</th>
<th class='fcaption'>Avg Time (us)&nbsp;</th>
<th class='fcaption'>Min Time (us)&nbsp;</th>
<th class='fcaption'>Max Time (us)&nbsp;</th>
</tr>
</thead>\n";
foreach ($this->aTrafficTimed as $key=>$aVals) { foreach ($this->aTrafficTimed as $key=>$aVals) {
if (substr($key,0,8)=='TRAF_CAL') continue; if (substr($key,0,8)=='TRAF_CAL') continue;
$text .= "<tr> $text .= "<tr>