Re: Memory profiling tools
| From: | Chris | Date: | Tue, 24 Jun 2008 05:39:42 +0000 |
| Subject: | Re: Memory profiling tools | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275875@lists.php.net to get a copy of this message | ||
Larry Garfield wrote:
> Hi all. I have a rather large application on which I need to do some memory
> performance profiling and optimization. Basically it's eating up more RAM
> than it should and I'm not sure why. I have some suspects, but nothing
> concrete.
>
> Are there any (open source) tools that people can recommend for such a task?
> Or any programming tricks one can recommend to identify the size of a given
> data structure? Windows or Linux are both fine; I have access to both.
You could use ticks:
http://www.davedevelopment.co.uk/2008/05/12/log-memory-usage-using-declare-and-ticks-in-php/
though see my comments (#7) about why you don't want to store the info
in php itself :P
--
Postgresql & php tutorials
http://www.designmagick.com/