From: Florent Bruneau Date: Sun, 23 Sep 2007 14:07:41 +0000 (+0200) Subject: Shows Smarty's footprint in plat/al execution X-Git-Tag: xorg/0.9.15~110 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=040a594c1c3eee468cd2afb890058642c651c841;p=platal.git Shows Smarty's footprint in plat/al execution Signed-off-by: Florent Bruneau --- diff --git a/classes/platalpage.php b/classes/platalpage.php index 42b6fcd..dc9358e 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -141,9 +141,11 @@ abstract class PlatalPage extends Smarty if (!($globals->debug & DEBUG_SMARTY)) { error_reporting(0); } + $START_SMARTY = microtime(true); $result = $this->fetch($skin); - $ttime = sprintf('Temps total: %.02fs - Mémoire totale : %dKo
', microtime(true) - $TIME_BEGIN - , memory_get_peak_usage(true) / 1024); + $ttime = sprintf('Temps total: %.02fs (Smarty %.02fs) - Mémoire totale : %dKo
', + microtime(true) - $TIME_BEGIN, microtime(true) - $START_SMARTY, + memory_get_peak_usage(true) / 1024); if ($globals->debug & DEBUG_BT) { PlBacktrace::clean(); $this->assign_by_ref('backtraces', PlBacktrace::$bt);