public function MemoryStats() { $aMemoryStats['memory_limit'] = ini_get('memory_limit'); $aMemoryStats['usage'] = ACE::MemSizeFormat(memory_get_usage()); $aMemoryStats['peak_usage'] = ACE::MemSizeFormat(memory_get_peak_usage(true)); $this->Viewer_Assign('aMemoryStats', $aMemoryStats); }
public function TplStatisticsPerformanceItem() { if ($this->_checkAdmin()) { $aMemoryStats['memory_limit'] = ini_get('memory_limit'); $aMemoryStats['usage'] = ACE::MemSizeFormat(memory_get_usage()); $aMemoryStats['peak_usage'] = ACE::MemSizeFormat(memory_get_peak_usage(true)); $this->Viewer_Assign('aMemoryStats', $aMemoryStats); $sTpl = Plugin::GetTemplatePath(__CLASS__) . 'hook.statistics_performance_item.tpl'; if (!ACE::FileExists($sTpl)) { $sTpl = Plugin::GetPath(__CLASS__) . '/templates/skin/default/hook.statistics_performance_item.tpl'; } if (ACE::FileExists($sTpl)) { return $this->Viewer_Fetch($sTpl); } } }