From b57bc15e531e069ef202c740cb403ceb9b50e7fa Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 26 Jan 2013 18:36:10 +0100 Subject: [PATCH] Adding more parameters to rendertime --- rendertime/rendertime.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 0792ce05..e2c7352c 100755 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -24,11 +24,15 @@ function rendertime_init_1(&$a) { function rendertime_page_end(&$a, &$o) { - $duration = round(microtime(true)-$a->performance["start"], 3); + $duration = microtime(true)-$a->performance["start"]; - $o = $o.'
'.sprintf(t("Rendertime: Database: %s, Network: %s, Rendering: %s, Total: %s"), + $o = $o.'
'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s"), round($a->performance["database"], 3), round($a->performance["network"], 3), round($a->performance["rendering"], 3), - $duration)."
"; + round($a->performance["parser"], 3), + round($a->performance["file"], 3), + round($duration - $a->performance["database"] - $a->performance["network"] + - $a->performance["rendering"] - $a->performance["parser"] + - $a->performance["file"], 3))."
"; } -- 2.39.5