Re: Re: My objects eats too much (and weird!) memory
| From: | Francisco M. Marzoa Alonso | Date: | Sun, 28 Jan 2007 02:54:03 +0000 |
| Subject: | Re: Re: My objects eats too much (and weird!) memory | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247901@lists.php.net to get a copy of this message | ||
Hello,
I took a look to www.xdebug.org and the only memory related functions
was those I found here:
http://www.xdebug.org/docs-functions.php#tracing
int xdebug_memory_usage()
int xdebug_peak_memory_usage()
The first seems to be the same that memory_get_usage
http://es2.php.net/manual/en/function.memory-get-usage.php
that I'm using on my script, and the second seems to be just like
memory_get_peak_usage:
http://es2.php.net/manual/en/function.memory-get-peak-usage.php
That has no sense for this test.
Thanks anyway.
On sáb, 2007-01-27 at 20:46 +0000, Colin Guthrie wrote:
> Francisco M. Marzoa Alonso wrote:
> > AFAIK there's no other way to measure memory usage on PHP than this, if
> > you know something better it could be more constructive if you show it.
>
> The last time I looked I think the xdebug module allowed you to get the
> memory consumption of a given object in PHP. I can't remember for sure
> tho', so check the docs/API before spending too much time with it :)
>
> HTH
>
> Col.
>
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc