Install XHProf in Ubuntu 14.04

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface. This article will show you the way to install and test XHProf in Ubuntu 14.04


When you talk, you are only repeating what you know; but when you listen, you learn something new


Install Graphviz:

Install XHProf from pecl:

Adding XHProf to PHP5:


Install XHProf report view:

Create a test script:

And view the report:

In the better way, you should create header.php, and footer.php and change apache2 configuration so that you can track your request automatically