Пример #1
0
 /**
  * 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();
 }
Пример #2
0
 /**
  * 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];
 }