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

posted @ 2019-03-12 23:14  jking10  阅读(314)  评论(0编辑  收藏  举报