/** * Logs the memory usage of the provided variable, or entire script * * @param string $name Optional name used to group variables and scripts together * @param mixed $variable Optional variable to log the memory usage of * * @return void */ public function log_memory($name = 'Memory usage at this point', $variable = NULL) { if (!$this->is_enabled()) { return; } $this->_console->log_memory($name, $variable); }