diff --git a/inc/page-footer.php b/inc/page-footer.php index 124d92d4..2112d215 100644 --- a/inc/page-footer.php +++ b/inc/page-footer.php @@ -4,5 +4,10 @@ echo "\n"; } } + if ( isset($c->dbg['statistics']) && $c->dbg['statistics'] ) { + $script_time = microtime(true) - $c->script_start_time; + @dbg_error_log("statistics", "Method: %s, Status: %d, Script: %5.3lfs, Queries: %5.3lfs, URL: %s", + $_SERVER['REQUEST_METHOD'], 200, $script_time, $c->total_query_time, $_SERVER['REQUEST_URI']); + } ?> \ No newline at end of file