xhprof-collector XHProf 收集器开源项目

我要开发同款
匿名用户2018年12月21日
61阅读

技术信息

开源地址
https://github.com/ZoaChou/xhprof-collector
授权协议
GPL

作品详情

xhprof-collector

Sigle XHProfcollector use XHProf API.

Noticethatthisisacollectoroly,soyouhavetogetaguitoshowcollecteddatasuchas xhgui.

Testedphpversio

5.6.36

7.0.30

Notice:IfyouareruigphpuderKuberetes,youhavetousetideways_xhprofextesiowhicholysupportphp>=7.0toavoidXHProfcrashihp_execute_iteral.

RequireXHProfextesio(either)

uprofiler

tideways

tideways_xhprof(recommed)

xhprof

mogoextesio(either)

mogodb(recommed)

mogo

SymfoyItegratioExampleIclude(either)

Composer(recommed)

{  "require" : {    "zoa-chou/xhprof-collector": "*",  }}

Siglefile

Copyxhprof-collector/src/collector.phptoyourpath

Requirecollectortoyourprojectatfirstlie,suchas:

<?phprequire_oce '/path/to/your/collector.php';

Ngixcofigure

Copyxhprof-collector/src/collector.phptoyourpath

Addfastcgi_paramtoyourgixcofigisideserverblock,suchas:

locatio ~ .*\.php?$ {    fastcgi_param PHP_VALUE "auto_preped_file=/path/to/your/collector.php";    fastcgi_pass  127.0.0.1:9000;    fastcgi_idex idex.php;    iclude fcgi.cof;}

Notice:Oceyouvisitedthehostwhichservercofigurecollector,gixwillalwayssedfastcgi_paramtophp-fpmeveifyouvisitotherotcofigureserver.

Appedphp.ii

Copyxhprof-collector/src/collector.phptoyourpath

Addauto_preped_filetoyourphp.ii,suchas:

auto_preped_file=/path/to/your/collector.phpCofigureevirometvariables

XHGUI_ENABLE_PROB&mdash;&mdash;Theprobabilityofstartcollectorwhilerequest.Validvalueisbetwee0(off)ad100(allo),defaultis0.

XHGUI_MONGO_URI&mdash;&mdash;mogodburi,suchas:mogodb://userame:password@ip:host,ip2:host2/dbame?coectTimeoutMS=200

XHGUI_ENABLE_CLI&mdash;&mdash;Eablecollectorwhilephpruigasclimodel.Validvaluesis0(off)ad1(o),defaultis0.

XHGUI_SINGLE_CONTROL&mdash;&mdash;EableusehttpheaderXHGUI-ENABLE-PROB(justlikeXHGUI_ENABLE_PROB,suchas:'XHGUI-ENABLE-PROB:100')tocotroltheprobabilityofstartcollectorwhichwillcoverXHGUI_ENABLE_PROB.Validvaluesis0(off)ad1(o),defaultis0.

功能介绍

xhprof-collector Single XHProf collector use XHProf API. Notice that this is a collector only, so...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论