1
While checking out CPG Dragonfly I found a neat little script that shows memory usage by the Content Management System.
Unfortunately I can't get the script to work in Xoops. Anyway know the reason why?
if (function_exists('memory_get_usage') && $start_mem > 0) {
$total_mem = memory_get_usage()-$start_mem;
$foot1 .= '
Memory Usage: '.(($total_mem >= 1048576) ? round((round($total_mem / 1048576 * 100) / 100), 2).' MB' : (($total_mem >= 1024) ? round((round($total_mem / 1024 * 100) / 100), 2).' KB' : $total_mem.' Bytes'));
}