summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-18 19:46:34 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-18 19:46:34 -0400
commit074cfa5d7a311f07d33b461ebf0700443de7249f (patch)
tree1ede354e13a6d58dce50b808b14bd9ac5f9dab65 /app/Controller
parentd60037549346ad7770ec22192da9d34ef3819ecc (diff)
Add memory consumption in debug log
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Base.php1
1 files changed, 1 insertions, 0 deletions
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']);
}
}