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

a6f5639e-2cf3-4a71-91e4-250befcfd6a8-medium

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:

Test:

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