Debugging Extensions (APD, etc.)

Debugging Extensions (APD, etc.)

am 05.04.2007 18:04:47 von Daniel Brown

------=_Part_52508_9195778.1175789087751
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Does anyone have any experience using engine-level debuggers and/or
extensions in PHP? I installed the PECL module APD just a moment ago, and
haven't even used it yet, because I wanted to see if anyone here has a
better suggestion. I'd like something that will track which functions are
being called and output a log of this information, as well as code execution
times so I can see exactly how many cycles are being wasted and reduce it.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

------=_Part_52508_9195778.1175789087751--

Re: Debugging Extensions (APD, etc.)

am 05.04.2007 18:18:13 von Eric Butera

On 4/5/07, Daniel Brown wrote:
> Does anyone have any experience using engine-level debuggers and/or
> extensions in PHP? I installed the PECL module APD just a moment ago, and
> haven't even used it yet, because I wanted to see if anyone here has a
> better suggestion. I'd like something that will track which functions are
> being called and output a log of this information, as well as code execution
> times so I can see exactly how many cycles are being wasted and reduce it.
>
> --
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>

Well the tools I've played around with are:

Xdebug - really nice for seeing everything about your script. (see
http://xdebug.org/docs-profiling2.php)

If you need to see internals you can look into valgrind (see
http://talks.php.net/show/oscon06/6).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Debugging Extensions (APD, etc.)

am 11.04.2007 04:37:41 von Richard Lynch

On Thu, April 5, 2007 11:04 am, Daniel Brown wrote:
> Does anyone have any experience using engine-level debuggers
> and/or
> extensions in PHP? I installed the PECL module APD just a moment ago,
> and
> haven't even used it yet, because I wanted to see if anyone here has a
> better suggestion. I'd like something that will track which functions
> are
> being called and output a log of this information, as well as code
> execution
> times so I can see exactly how many cycles are being wasted and reduce
> it.

Check out valgrind/callgrind in Linux.

Also check out XDebug.

--
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/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php