19May/09Off

php profiler xdebug, wincachegrind, webgrind

/usr/ports/devel/php-xdebug

php.ini (or xdebug.ini)

[xdebug]

zend_extension="/usr/local/lib/php/20060613/xdebug.so"

xdebug.profiler_enable = On
xdebug.show_local_vars=On
xdebug.dump.SERVER=HTTP_HOST, SERVER_NAME
xdebug.dump_globals=On
xdebug.collect_params=4
xdebug.dump.GET=*
xdebug.dump.POST=*
xdebug.profiler_output_dir = "/pathtoyourlogsdir/logs/"
xdebug.profiler_append= 0
xdebug.auto_trace = Off
xdebug.show_mem_delta = On
xdebug.collect_return = Off
xdebug.trace_options = 1
xdebug.var_display_max_children = 2000
xdebug.var_display_max_depth = 2000
xdebug.var_display_max_data = 2000
download wincachegrind or use orignal project home
Check this: http://code.google.com/p/webgrind/ and XDebug Slides – OSCON 2009 - Brandon Savage