Add memory usage in the devel banner
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 23 Feb 2007 10:46:22 +0000 (10:46 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 23 Feb 2007 10:46:22 +0000 (10:46 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1512 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/platalpage.php

index 243c4b1..0568d33 100644 (file)
@@ -121,7 +121,8 @@ class PlatalPage extends Smarty
         $this->assign('validate', true);
         error_reporting(0);
         $result = $this->fetch($skin);
-        $ttime  = sprintf('Temps total: %.02fs<br />', microtime(true) - $TIME_BEGIN);
+        $ttime  = sprintf('Temps total: %.02fs - Mémoire totale : %.02fKo<br />', microtime(true) - $TIME_BEGIN
+                                                                                , memory_get_peak_usage(true) / 1024);
         $replc  = "<span class='erreur'>VALIDATION HTML INACTIVE</span><br />";
 
         if ($globals->debug & 2) {