安装xhprof:
wget http://pecl.php.net/get/xhprof-0.9.2.tgz
tar zxf xhprof-0.9.2.tgz
cd xhprof-0.9.2
cp -r xhprof_html xhprof_lib /www/www.hx.com/xhprof/
cd extension/
/usr/local/webserver/php/bin/phpize
./configure –with-php-config=/usr/local/webserver/php/bin/php-config
make && make install
Graphviz生成图形。编译Graphviz遇到一些问题,主要是”/usr/lib/libexpat.so: could not read symbols: File in wrong format”,使用下面congfigure命令便可以正确编译。
./configure --disable-swig LDFLAGS=\"-L/usr/lib64 -L/lib64\"