views:

189

answers:

2

I've written a batch processor that runs multiple threads (pcntl_fork) and I'm getting some weird results when child processes go defunct and don't seem to let go of their resources.

Is there a good code profiler, trace utility I can use to 'watch' the parent process and children to see what is going on?

+1  A: 

The only profiler I know of is XDebug. You can process the results with Webgrind or KCachegrind.

It gives performance statistics about your written PHP code, so you should be able to figure out if the problems are due to your code or some PHP/OS bug.

Wimmer
A: 

Xdebug can both do profiling and interactive debugging. There are several clients available to connect to the debugging process.

troelskn