// Fixed revision 13573

This commit is contained in:
bMancone committed 2012-02-28 13:32:59 +00:00
1 parent a90e8a9809
commit bc94509ab3
1 file changed
+7 -1
+7 -1
View File
@@ -305,6 +305,9 @@ abstract class Controller extends ControllerCore
} }
arsort($globalSize); arsort($globalSize);
$cache = Cache::retrieveAll();
$totalCacheSize = $this->sizeofvar($cache);
echo '<br /><br /> echo '<br /><br />
<div class="rte" style="text-align:left;padding:8px;float:left"> <div class="rte" style="text-align:left;padding:8px;float:left">
<b>Load time</b>: '.$this->displayLoadTimeColor($this->_time['display'] - $start_time, true).''; <b>Load time</b>: '.$this->displayLoadTimeColor($this->_time['display'] - $start_time, true).'';
@@ -326,7 +329,7 @@ abstract class Controller extends ControllerCore
echo '</ul> echo '</ul>
</div> </div>
<div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px"> <div class="rte" style="text-align:left;padding:8px;float:left;margin-left:20px">
<b>Memory peak usage</b>: '.$this->displayMemoryColor(memory_get_peak_usage()).''; <b>Memory peak usage</b>: '.$this->displayMemoryColor(memory_get_peak_usage());
if (self::$_footer) if (self::$_footer)
{ {
echo '<ul>'; echo '<ul>';
@@ -338,6 +341,9 @@ abstract class Controller extends ControllerCore
} }
echo '</ul>'; echo '</ul>';
} }
echo '<br /><br />
<b>Total cache size (in Cache class)</b>: '.$this->displayMemoryColor($totalCacheSize).'
</div>';
echo '</div>'; echo '</div>';
echo ' echo '