private static function debugFooter($precision = 4) { $db = gdo_db(); $queries = $db->getQueryCount(); $writes = $db->getQueryWriteCount(); $t_total = microtime(true) - GWF_DEBUG_TIME_START; $t_mysql = $db->getQueryTime(); $t_php = $t_total - $t_mysql; $f = sprintf('%%0.%dfs', (int) $precision); $bd = ''; #self::debugBrowser(); $mem = GWF_Upload::humanFilesize(memory_get_peak_usage(true)); $mods = GWF_Module::getModulesLoaded(); return sprintf("<div>%d Queries (%d writes) in {$f} - PHP Time: {$f} - Total Time: {$f}. Memory: %s<br/>Modules loaded: %s</div>", $queries, $writes, $t_mysql, $t_php, $t_total, $mem, $mods) . $bd; }