XHProf安装和使用

wget http://pecl.php.net/get/xhprof-0.9.4.tgz

tar zxf xhprof-0.9.4.tgz

cd xhprof-0.9.4/extension/

sudo phpize
./configure
sudo make
sudo make install

 

 

在php.ini里加入

[xhprof]
extension=xhprof.so;
; directory used by default implementation of the iXHProfRuns
; interface (namely, the XHProfRuns_Default class) for storing
; XHProf runs.… 更多...

Fedora 20 编译 PHP 5.5

git 官方地址:
git clone https://git.php.net/repository/php-src.git
或 github 官方镜像:
git clone git://github.com/php/php-src.git

cd php-src

签出5.5分支:
git checkout PHP-5.5

编译:
./buildconf
./configure

若出现:
configure: WARNING: bison versions supported for regeneration of the Zend/PHP parsers: 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 
更多...