You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo phpize
> Configuring for:
> PHP Api Version: 20090626
> Zend Module Api No: 20090626
> Zend Extension Api No: 220090626
# compile
./configure
make
sudo make install
> Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20090626/
How to install XHProf on Ubuntu
wget http://pecl.php.net/get/xhprof-0.9.2.tgz
tar xvf xhprof-0.9.2.tgz
cd ./xhprof-0.9.2/extension/
phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
make test
Enable xhprof by adding the following value to php.ini
[xhprof]
extension=xhprof.so
; Directory where xhprof saves the result
; xhprof.output_dir=/var/tmp
Check to see if xhprof is enabled
php -i | grep xhprof
> xhprof => 0.9.2
Usage
Before we can start profiling our application, we need to create 2 files