Re: cvs: php-benchmarks /benchcli/tests test_whirl.php /benchcli/tests/phpWhirl 99bottles.wr AUTHORS COPYING keymaker.wr whirl.php
/benchcli/tests/phpWhirl/classes WhirlMathRing.php WhirlMemory.php WhirlOpsRing.php WhirlParser.php WhirlRing.
| From: | Paul Biggar | Date: | Thu, 04 Jun 2009 09:31:39 +0000 |
| Subject: | Re: cvs: php-benchmarks /benchcli/tests test_whirl.php /benchcli/tests/phpWhirl 99bottles.wr AUTHORS COPYING keymaker.wr whirl.php /benchcli/tests/phpWhirl/classes WhirlMathRing.php WhirlMemory.php WhirlOpsRing.php WhirlParser.php WhirlRing. |
||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65070@lists.php.net to get a copy of this message | ||
On Thu, Jun 4, 2009 at 10:18 AM, Paul Biggar <paul.biggar@gmail.com> wrote:
> On Wed, Jun 3, 2009 at 8:04 PM, Alexander Hjalmarsson <hjalle@sgh.se> wrote:
>> I've read about TCmalloc a little bit more now, and it do look like the heap
>> profiler will provide it, but I have no idea how to run php-code with it.
>> All documentation is about compiling C++ code. I've seen how it goes through
>> apache;
>> http://www.csamuel.org/2006/12/15/now-using-googles-tcmalloc, but
>> can still don't figure out how to do it with php.
>
> Its the same. LD_PRELOAD means that the tcmalloc library will be
> loaded before the libc one, and so be used for memory allocation. I
> tried to try it here, but it looks broken on my machine. But you
> should be able to do:
>
> LD_PRELOAD=/usr/local/google-perftools/lib/libtcmalloc.so php --help
FYI, the docs aren't too easy to find:
http://google-perftools.googlecode.com/svn/trunk/doc/index.html
Paul
--
Paul Biggar
paul.biggar@gmail.com