mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Improved display of Traffic debug stats.
This commit is contained in:
parent
550754029e
commit
8a29674948
@ -24,11 +24,14 @@ if (!defined('e107_INIT')) { exit; }
|
||||
//
|
||||
|
||||
if (count($this->aTraffic)) { // Simple counts
|
||||
$text .= "\n<table class='fborder'>\n";
|
||||
$text .= "<tr><td class='fcaption' style='width:15%'>Item</td>
|
||||
<td class='fcaption' style='text-align:right;width:15%'>Count </td>
|
||||
<td class='fcaption'> </td>
|
||||
</tr>\n";
|
||||
$text .= "\n<table class='fborder table table-condensed table-striped'>\n";
|
||||
$text .= "<thead>
|
||||
<tr>
|
||||
<th class='fcaption' style='width:15%'>Item</th>
|
||||
<th class='fcaption' style='text-align:right;width:15%'>Count </th>
|
||||
<th class='fcaption'> </th>
|
||||
</tr>
|
||||
</thead>\n";
|
||||
foreach ($this->aTraffic as $key=>$aVals) {
|
||||
$text .= "<tr>
|
||||
<td class='forumheader3'>".
|
||||
@ -58,13 +61,20 @@ if (!defined('e107_INIT')) { exit; }
|
||||
// Fancy timed counts
|
||||
//
|
||||
if (count($this->aTrafficTimed)) {
|
||||
$text .= "\n<table class='fborder'>\n";
|
||||
$text .= "<tr><td class='fcaption'>Item</td><td class='fcaption'>Count </td>
|
||||
<td class='fcaption'>Tot Time (ms) </td>
|
||||
<td class='fcaption'>Avg Time (us) </td>
|
||||
<td class='fcaption'>Min Time (us) </td>
|
||||
<td class='fcaption'>Max Time (us) </td>
|
||||
</tr>\n";
|
||||
$text .= "\n<table class='fborder table table-condensed table-striped'>\n";
|
||||
$text .= "
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='fcaption'>Item</th>
|
||||
<th class='fcaption'>Count </th>
|
||||
<th class='fcaption'>Tot Time (ms) </th>
|
||||
<th class='fcaption'>Avg Time (us) </th>
|
||||
<th class='fcaption'>Min Time (us) </th>
|
||||
<th class='fcaption'>Max Time (us) </th>
|
||||
</tr>
|
||||
</thead>\n";
|
||||
|
||||
|
||||
foreach ($this->aTrafficTimed as $key=>$aVals) {
|
||||
if (substr($key,0,8)=='TRAF_CAL') continue;
|
||||
$text .= "<tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user