Profiling PHP and Drupal with XDebug (In OSX) Problems with a rogue app you built (maybe not you)? Just some links which I found useful in order to debug/profiling your app: http://www.sitepoint.com/debugging-and-profiling-php-with-xdebug/ Run it in you Mac with OSX: https://josephscott.org/archives/2013/07/qcachegrind-kcachegrind-on-mac-... http://www.tekkie.ro/computer-setup/how-to-install-kcachegrind-qcachegri... https://langui.sh/2011/06/16/how-to-install-qcachegrind-kcachegrind-on-m... http://blog.jcmultimedia.com.au/2014/03/profiling-php-on-osx-with-xdebug... https://gist.github.com/justfalter/1029580 Sometimes you need your profiler to be executed everytime. You can do that with this: xdebug.profiler_enable=OnThis is my whole xdebug.ini: ; Enable xdebug extension module zend_extension=/usr/lib64/php/modules/xdebug.so xdebug.remote_enable=1 xdebug.remote_host=192.168.33.1 xdebug.remote_port=9000 xdebug.remote_mode=req xdebug.remote_connect_back=0 xdebug.profiler_enable=On xdebug.profiler_output_dir=/www/profiling_data xdebug.profiler_enable_trigger=1 Other general links: http://www.sitepoint.com/debugging-and-profiling-php-with-xdebug/ official documentation: http://www.xdebug.org/docs/profiler categorias: xdebugprofilingphpdrupal Submitted by alexmoreno on Thu, 12/06/2014 - 11:56