refactor: Collection and output of db and snmp stats (#5049)

This commit is contained in:
Tony Murray
2016-11-23 00:57:19 -06:00
committed by Neil Lathwood
parent 6708c7cb81
commit db240cb4eb
10 changed files with 162 additions and 108 deletions

View File

@@ -260,10 +260,8 @@ $gentime = substr($runtime, 0, 5);
# FIXME - move this
if ($config['page_gen']) {
echo(' <br />MySQL: Cell '.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_sec']+0, 3).'s'.
' Row '.($db_stats['fetchrow']+0). '/'.round($db_stats['fetchrow_sec']+0, 3).'s'.
' Rows '.($db_stats['fetchrows']+0).'/'.round($db_stats['fetchrows_sec']+0, 3).'s'.
' Column '.($db_stats['fetchcol']+0). '/'.round($db_stats['fetchcol_sec']+0, 3).'s');
echo '<br />';
printStats();
$fullsize = memory_get_usage();
unset($cache);