Show memory usage in debug panel

This commit is contained in:
Kijin Sung 2021-02-09 23:52:35 +09:00
parent 08f8e0ccd4
commit 9b714acb55
3 changed files with 3 additions and 0 deletions

View file

@ -776,6 +776,7 @@ class Debug
'method' => \Context::getResponseMethod(),
'size' => \DisplayHandler::$response_size,
),
'memory' => memory_get_peak_usage(),
'timing' => (object)array(
'total' => sprintf('%0.4f sec', microtime(true) - \RX_MICROTIME),
'template' => sprintf('%0.4f sec (count: %d)', $GLOBALS['__template_elapsed__'] ?? 0, $GLOBALS['__TemplateHandlerCalled__'] ?? 0),