Debug : Add memory info

This commit is contained in:
Dany De Bontridder 2019-04-14 18:22:50 +02:00
parent 8ba5c9dcd7
commit a53c63c76e

View file

@ -110,6 +110,10 @@ html_page_start($style_user);
if ( DEBUG ) {
?>
<div id="debug_div" style="border:slategray solid 1px;margin-left: 0px;position:absolute;background:white;display:fixed;top:2px;left:25px;z-index:1000;display:none">
<h2 style="margin-top:100px"> Memory Usage </h2>
<?php echo memory_get_usage()/1024.0 . " kb \n"; ?>
<h2>$_POST</h2>
<pre>
<?php
@ -139,6 +143,7 @@ if ( DEBUG ) {
<h2>$GLOBALS</h2>
<pre>
<?php
// Use much of memory
print_r($GLOBALS);
?>
</pre>