Forum: PATCH: Show Memory Usage in the footer
| bilouteboy 267 days ago | Some lines I have added to my version
In CLSPage.php, in the DrawFooter() function before the return, add: $aString[]= "Memory Usage ". round(memory_get_usage()/1024,2)." KB RAM is being used. Current Allocated RAM Usage :".round(memory_get_peak_usage(true)/1024,2)." KB RAM - Max. Allocated RAM :".round(memory_get_peak_usage()/1024,2)." KB RAM"." Memory Limit :". ini_get('memory_limit'); It will show you stats on memory usage by the page |
| bilouteboy 267 days ago | usage in MB is maybe more readable... by changing 1024 to 1048576 and KB to MB
by using this, i found out that memory usage may vary according to the size of the logfile. |
| Asaf 264 days ago | thats nice
I've tried it, if you'd made a patch against the current tree thats : 1. aligns this line to the left, in a seperate line. 2. makes a configuration option to include / exclude it (a global one it think, not per site) then I will commit it to the upstream |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try the online demo or download now.
Latest JAWStats News:
Version 0.7 Beta Released
Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.
posted 25th Jan '09. read more »
Help JAWStats
Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.
Get $50 off your webhosting
You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!