Quick install of XHProf for Debian Squeeze

php debian xhprof

XHProf is PHP profiler that was originally made by facebook for profiling in production environment, and I actually thinks it's way better than the Xdebug and webgrind combination.

XHProf homepage

sudo apt-get install php5-common
sudo apt-get install php5-dev
sudo apt-get install make
sudo apt-get install graphviz
sudo pecl config-set preferred_state beta
sudo pecl install xhprof
sudo touch /etc/php5/conf.d/xhprof.ini

Add the PHP module into the a ini

sudo vim /etc/php5/conf.d/xhprof.ini

And this could be the content of that config file: