From 19495c1e1156f2fefd124d87f1fb4348b3da9631 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 27 Jan 2013 14:00:28 +0100 Subject: [PATCH] rendertime: total sum is displayed --- rendertime/rendertime.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index e2c7352c..f73e0856 100755 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -26,13 +26,16 @@ function rendertime_page_end(&$a, &$o) { $duration = microtime(true)-$a->performance["start"]; - $o = $o.'
'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s"), + $o = $o.'
'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s, Total: %s"), round($a->performance["database"], 3), round($a->performance["network"], 3), round($a->performance["rendering"], 3), round($a->performance["parser"], 3), round($a->performance["file"], 3), + //round($a->performance["markstart"], 3), round($duration - $a->performance["database"] - $a->performance["network"] - $a->performance["rendering"] - $a->performance["parser"] - - $a->performance["file"], 3))."
"; + - $a->performance["file"], 3), + round($duration, 3))."
"; + }