From 074cfa5d7a311f07d33b461ebf0700443de7249f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 18 Jul 2015 19:46:34 -0400 Subject: Add memory consumption in debug log --- app/Controller/Base.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Controller') diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 31eb023d..f68c4755 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -67,6 +67,7 @@ abstract class Base extends \Core\Base $this->container['logger']->debug('SQL_QUERIES={nb}', array('nb' => $this->container['db']->nbQueries)); $this->container['logger']->debug('RENDERING={time}', array('time' => microtime(true) - @$_SERVER['REQUEST_TIME_FLOAT'])); + $this->container['logger']->debug('MEMORY='.$this->helper->text->bytes(memory_get_usage())); $this->container['logger']->debug('END_REQUEST='.$_SERVER['REQUEST_URI']); } } -- cgit v1.2.3