Re: Trying to find out where the memory went
| From: | David Zülke | Date: | Tue, 07 Jun 2011 14:38:28 +0000 |
| Subject: | Re: Trying to find out where the memory went | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53147@lists.php.net to get a copy of this message | ||
Damn I'm an idiot. I meant memory_get_usage() all along. Sorry Mike. Then it'll make
sense... memory_get_usage(), but a gc_collect_cycles() before the second call.
So, my first email should have had this code in it:
var_dump(memory_get_usage());
token_get_all(file_get_contents('<PATH>'));
var_dump(memory_get_usage());
And then, a comparison to this would be useful:
var_dump(memory_get_usage());
token_get_all(file_get_contents('<PATH>'));
gc_collect_cycles();
var_dump(memory_get_usage());
David
On 07.06.2011, at 16:34, Ferenc Kovacs wrote:
> On Tue, Jun 7, 2011 at 4:28 PM, David Zülke <david.zuelke@bitextender.com>wrote:
>
>> Please test the exact thing I suggested :)
>>
>
> AFAIK he did.
> " int(640720)
> int(244001144)"
> except if you suggested something else off-list.
>
> Tyrael
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s