Skip to content
RoySegall edited this page Mar 9, 2014 · 9 revisions

INSTALL DEPENDENCIES

apt-get install php5-dev

DOWNLOAD XHPROF SOURCE

cd /tmp
git clone git://github.com/facebook/xhprof.git

INSTALL XHPROF EXTENSION

cd xhprof/extension
phpize
./configure
make
make install

EDIT PHP INI FILE Edit the PHP inf file and add the next code in the end:

[xhprof]
extension=xhprof.so
xhprof.output_dir=/tmp

Restart your apache server

cd into your www folder and run the next command:

mkdir xhprof
cp -a /tmp/xhprof/xhprof_* /var/www/xhprof

Go to devel settings and check on enable profile and set the next variables:

xhprof directory - /var/www/xhprof
XHProf URL - http://localhost/xhprof/xhprof_html
Clone this wiki locally