Add memory consumption in debug log

This commit is contained in:
Frederic Guillot 2015-07-18 19:46:34 -04:00
parent d600375493
commit 074cfa5d7a
1 changed files with 1 additions and 0 deletions

View File

@ -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']);
}
}