/** * Constructor */ public function __construct() { Zoombi_Profiler::start('Application'); $this->setName(Zoombi_Module::DEFAULT_MODULE_NAME); $this->setBaseDir(Zoombi::getBootDir()); $this->setConfig(Zoombi::$defaults); parent::__construct(); $this->m_errors = array(); $this->m_except = array(); $this->m_database = null; $this->m_app_route_deep = 0; $this->m_route_transform = array(); }
/** * Get how memmory load since start * @param string $a_name * @return float */ public static function memmory($a_name) { $a_name = $a_name === null ? Zoombi_Profiler::DEFAULT_TIMER_NAME : $a_name; return memory_get_usage() - Zoombi_Profiler::getInstance()->m_mem[(string) $a_name]; }