Loving the new updated version thank you very much for all your hard work!
However the stats that you enable for admin to see at the bottom of the page need more information in my opinion.
I used to have this modification (see php below) installed, I added the start to it so it would only work for admin.
But this version below had SERVER stats too see the code block below this is what it looks like.
MicroStats
Thank you very much for your time as always
Regards
Mick
However the stats that you enable for admin to see at the bottom of the page need more information in my opinion.
I used to have this modification (see php below) installed, I added the start to it so it would only work for admin.
But this version below had SERVER stats too see the code block below this is what it looks like.
Code:
Page Time: 0.86991 seconds Memory: 39,507 KB Queries: 31 Templates: 53
Server Uptime: 32 days 2 hours 28 mins Server Load: 0.39 : 0.44 : 0.67
MicroStats
PHP:
if ($vbulletin->userinfo['usergroupid'] == 6)
{
$totaltime = microtime(true) - TIMESTART;
$templatecache = vB_Template::$template_usage;
$microdebug .= '<div class="footer_morecopyright" style="margin-top: 0px">';
$microdebug .= 'Page Time: <b>' . vb_number_format($totaltime, 5) . '</b> seconds ';
$microdebug .= function_exists('memory_get_usage') ? 'Memory: <b>' . number_format(memory_get_usage() / 1024) . '</b> KB ' : '';
$microdebug .= 'Queries: <b>' . $vbulletin->db->querycount . '</b> ';
$microdebug .= 'Templates: <b>' . sizeof($templatecache) . '</b>';
if ($vbulletin->userinfo['usergroupid'] == 6)
{
$templatequeries = vB_Template::$template_queries;
$microdebug .= $templatequeries ? ' (<b>' . sizeof($templatequeries) . '</b> uncached)' : '';
if ($uptime = @exec(uptime))
{
$microdebug .= '<br />';
preg_match_all('/([\d\.]+)/',$uptime,$srv);
$srv = $srv[1];
if ($srv[10])
{
$microdebug .= 'Server Uptime: <b>' . $srv[3] . ' months ' . $srv[4] . ' days ' . $srv[5] . ' hours ' . $srv[6] . ' mins</b> ';
$microdebug .= 'Server Load: <b>' . $srv[8] . '</b> : ' . $srv[9] . ' : ' . $srv[10];
}
else if ($srv[9])
{
$microdebug .= 'Server Uptime: <b>' . $srv[3] . ' days ' . $srv[4] . ' hours ' . $srv[5] . ' mins</b> ';
$microdebug .= 'Server Load: <b>' . $srv[7] . '</b> : ' . $srv[8] . ' : ' . $srv[9];
}
else if ($srv[8])
{
$microdebug .= 'Server Uptime: <b>' . $srv[3] . ' hours ' . $srv[4] . ' mins</b> ';
$microdebug .= 'Server Load: <b>' . $srv[6] . '</b> : ' . $srv[7] . ' : ' . $srv[8];
}
}
if ($templatequeries)
{
ksort($templatecache);
$microdebug .= '<br /><table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">';
foreach ($templatecache AS $templatename => $times)
{
if ($templatequeries["$templatename"])
{
$microdebug .= '<tr><td style="color: red; text-align: left;"><b>' . $templatename . '</b></td><td style="padding-left: 10px;">(' . $times . ')</td></tr>';
}
}
$microdebug .= '</table>';
}
}
$microdebug .= "</div>";
$output = str_replace('</body>',$microdebug.'</body>', $output);
}
Thank you very much for your time as always
Regards
Mick
Upvote
0