示例#1
0
 public function populateMetadata()
 {
     $this->setUrl(Mage::app()->getRequest()->getRequestUri());
     $this->setRoute(Mage::app()->getFrontController()->getAction()->getFullActionName());
     $this->setSessionId(Mage::getSingleton('core/session')->getSessionId());
     $totals = Varien_Profiler::getTotals();
     $this->setTotalTime($totals['time']);
     $this->setTotalMemory((double) $totals['realmem'] / (1024 * 1024));
 }