Using Kcachegrind to profile your code
1.) Install xdebug -- I'm running MAMP so it's already installed and in php.ini I just needed to turn it on here are my settings:
[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
;xdebug.profiler_output_dir = "/tmp/xdebug/"
;xdebug.profiler_enable = On
xdebug.remote_enable=On
xdebug.remote_host="belldev"
xdebug.remote_port=9000
;xdebug.remote_handler="dbgp"
;xdebug.idekey=ECLIPSE_DBGP
;xdebug.remote_mode=jit