Fresh PHP news, tutorials, tips and much more

Logging PHP script memory usage

Dave Marshall posted article about php script memory usage logging. Memory logging is important because you may know haw many resources you would need for your application to run normally.

As far as I know, there isn’t any memory footprint profiling in Xdebug, I think there was at some point but they removed it because it was a little flaky. I like to monitor the memory usage within my scripts, and I’ve found this simple snippet can help.

Snippet to log memory is posted on his blog.

Post tagged with: , ,

Leave a Reply