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

@ -249,6 +249,7 @@ class DisplayHandler extends Handler
$output = substr($output, 0, $body_end_position) . "\n$panel_script\n" . substr($output, $body_end_position);
break;
case 'JSON':
unset($_SESSION['_rx_debug_previous']);
if (preg_match('/^(.+)\}$/', $output, $matches))
{
$output = $matches[1] . ',"_rx_debug":' . json_encode($data) . '}';