Dave Marshall's Blog: Log memory usage using declare and ticks i...

Courtesy PHPDeveloper.org  Fri, 05/16/2008 - 12:05

Posted to his blog, Dave Marshall has a tip that uses declare and a trick or two to check out the memory usage of your scripts.

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.

...


 

More related items

ApacheLounge.com: Memory usage Apache + PHP as module versus Fas...
In this quick post to the ApacheLounge forum, Steffen shares some stats running PHP in two different methods of running PHP on Apache - mod_php and...

Site News: Popular Posts for the Week of 05.23.2008
Popular posts from PHPDeveloper.org for the past week:Developer Tutorials Blog: Running PHP cron jobs - regular scheduled tasks in PHP Dave...

P3 Podcast: Newscast for May 15th, 2008
The latest episode of the php|architect P3 podcast has been posted today - the Newscast for May 15th, 2008. Topics mentioned in this episode...

Site News: Popular Posts for the Week of 05.16.2008
Popular posts from PHPDeveloper.org for the past week:IBM developerWorks: The future of PHP SitePoint PHP Blog: A PHP Guy's Look At Python Derick...

Xdebug finally in Debian - Derick Rethans
Since a few days, there is a new package in Debian: php5-xdebug. After a few years of talking licenses, due to the help of Martin Meredith and...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com