Debug : Add memory info
This commit is contained in:
parent
8ba5c9dcd7
commit
a53c63c76e
1 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue