Xdebug、XHProf 、OneAPM 和 SocketLog

DevOps 生活变得美好的神器。分别是 Xdebug、XHProf 、OneAPM 和 SocketLog

方法很简单,从 Xdebug 下载最新版的源代码。 wget 解压:

tar zxvf xdebug-2.3.3.tgz  
cd xdebug-2.3.3  
phpize  
./configure with-php-config=/usr/bin/php-config
make  
make install

[xdebug]
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so  
xdebug.remote_enable=on  
xdebug.remote_handler=dbgp  
xdebug.remote_host=localhost  
xdebug.remote_port=9100


XHProf 是 PHP 扩展,不过不建议从http://pecl.php.net/package/xhprof 
最好从https://github.com/phacility/xhprof 
https://github.com/tideways/php-xhprof-extension


https://github.com/luofei614/SocketLog 

https://www.oneapm.com

原文地址:https://www.cnblogs.com/jking10/p/10520348.html