Installing XHProf PHP Profiler on Ubuntu

Last updated:

Update PEAR first of all:

$ sudo pear upgrade pear

Then use pecl to install the xhprof extension:

$ sudo pecl install -f xhprof

Add this to php.ini:

Restart Apache:

$ sudo /etc/init.d/apache2 restart


now you can run an example by looking at this guide.

Dialogue & Discussion