// Fixed revision 13573
This commit is contained in:
@@ -287,7 +287,7 @@ abstract class Controller extends ControllerCore
|
||||
$totalHookTime = 0;
|
||||
foreach ($hooktime as $time)
|
||||
$totalHookTime += $time;
|
||||
|
||||
|
||||
$hookMemoryUsage = Hook::getHookMemoryUsage();
|
||||
arsort($hookMemoryUsage);
|
||||
$totalHookMemoryUsage = 0;
|
||||
@@ -305,6 +305,9 @@ abstract class Controller extends ControllerCore
|
||||
}
|
||||
arsort($globalSize);
|
||||
|
||||
$cache = Cache::retrieveAll();
|
||||
$totalCacheSize = $this->sizeofvar($cache);
|
||||
|
||||
echo '<br /><br />
|
||||
<div class="rte" style="text-align:left;padding:8px;float:left">
|
||||
<b>Load time</b>: '.$this->displayLoadTimeColor($this->_time['display'] - $start_time, true).'';
|
||||
@@ -326,7 +329,7 @@ abstract class Controller extends ControllerCore
|
||||
echo '</ul>
|
||||
</div>
|
||||
<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)
|
||||
{
|
||||
echo '<ul>';
|
||||
@@ -338,6 +341,9 @@ abstract class Controller extends ControllerCore
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
echo '<br /><br />
|
||||
<b>Total cache size (in Cache class)</b>: '.$this->displayMemoryColor($totalCacheSize).'
|
||||
</div>';
|
||||
echo '</div>';
|
||||
|
||||
echo '
|
||||
|
||||
Reference in New Issue
Block a user