Re: Profiling PHP App

From: Date: Thu, 20 Dec 2007 19:27:09 +0000
Subject: Re: Profiling PHP App
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266178@lists.php.net to get a copy of this message
On Wed, December 19, 2007 10:21 pm, php mail wrote: > Is there any tool to profiling PHP app ? Compile PHP --with-debug and then use: valgrind --tool=callgrind php -q yourscript.php You get a nifty fabulous listing of where X% of your time is being spent and a really cool diagram of your function calls. Rasmus routinely shows this off in his talks regarding PHP performance. It can be a pain to find/install valgrind/callgrind, but it's well worth it! There are GUI tools to examine the data, such as KCachegrind. I cannot recommend these tools enough! -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#266178) next »