From 421e594a4e743ddea267ee10f599b2522f3e36f3 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 1 Apr 2010 22:23:30 +1300 Subject: [PATCH] Support statistics logging for interactive pages too. --- inc/page-footer.php | 5 +++++ 1 file changed, 5 insertions(+) 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