Re: Memory leak detection
| From: | Antony Dovgal | Date: | Fri, 20 Nov 2009 10:23:06 +0000 |
| Subject: | Re: Memory leak detection | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6802@lists.php.net to get a copy of this message | ||
On 20.11.2009 05:32, Gustavo Lopes wrote:
>> I would also suggest using valgrind to detect memleaks, but don't forget
>> to --enable-debug and export USE_ZEND_ALLOC=0 env var.
>> Here is the line I use:
>> USE_ZEND_ALLOC=0 valgrind --tool=memcheck --leak-check=yes
>> --num-callers=30 --show-reachable=yes php script.php
>>
>
> There's no valgrind for windows.
One of the reasons I don't use Windows.
--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP