noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 24/107: Debug : Add memory info


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 24/107: Debug : Add memory info
Date: Mon, 26 Aug 2019 10:31:49 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit a53c63c76e24df5bf49f9840f46b3dbfe5401f85
Author: Dany De Bontridder <address@hidden>
Date:   Sun Apr 14 18:22:50 2019 +0200

    Debug : Add memory info
---
 html/do.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/html/do.php b/html/do.php
index be77861..c8ea494 100644
--- a/html/do.php
+++ b/html/do.php
@@ -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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]