Download the PHP package guangzhonghedd01/xhgui-collector without Composer
On this page you can find all versions of the php package guangzhonghedd01/xhgui-collector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download guangzhonghedd01/xhgui-collector
More information about guangzhonghedd01/xhgui-collector
Files in guangzhonghedd01/xhgui-collector
Download guangzhonghedd01/xhgui-collector
More information about guangzhonghedd01/xhgui-collector
Files in guangzhonghedd01/xhgui-collector
Vendor guangzhonghedd01
Package xhgui-collector
Short Description Library for collecting and storing XHProf results for later use by XHGUI.
License MIT
Package xhgui-collector
Short Description Library for collecting and storing XHProf results for later use by XHGUI.
License MIT
Please rate this library. Is it a good library?
Informations about the package xhgui-collector
XHGUI Collector - laravel5/thinkphp5
fork from xhgui-collector
改造后支持 psr-4,框架可以一键对日志进行采集。
数据采集存储于mongodb,其它存储方式暂时没做测试。
展示可以使用:
使用指南
composer require guangzhonghedd01/xhgui-collector
- env 配置信息
env | description | example | default |
---|---|---|---|
XHGUI_MONGO_URI | mongodb 地址 | XHGUI_MONGO_URI=mongo:27017 |
127.0.0.1:27017 |
XHGUI_MONGO_DB | 库名 | XHGUI_MONGO_DB=xhprof |
xhprof |
XHGUI_PROFILING_RATIO | 采样比率 | XHGUI_PROFILING_RATIO=50 对50%请求进行采集 |
XHGUI_PROFILING_RATIO=100 |
XHGUI_PROFILING | 采集开关 | XHGUI_PROFILING=enabled |
如果不填写值就是关闭状态 |
XHGUI_EXECUTE_SECOND | 执行时间门槛(秒) | XHGUI_EXECUTE_SECOND=1 |
XHGUI_EXECUTE_SECOND=1 执行时间大于1秒才采集,支持小数,如:0.1 |
XHGUI_FILTER_VAR | 需要过滤ENV的敏感数据信息 | XHGUI_PROFILING=xx_password |
没有默认值 |
APP_NAME | 项目名称 | APP_NAME=test |
test |
Laravel
- 将Xhgui/config/laravel.php 拷贝到 laravel 项目config文件夹下,更名为xhgui.php
- 在需要采集的路由上增加中间件
Thinkphp
- 将Xhgui/config/laravel.php 拷贝到项目application/extra/件夹下,更名为xhgui.php(extrea文件夹可能不存在)
-
增加/www/web/ydapi-dadi01-com/extend/hook目录下新增Xhgui.php,
- 在application/tags.php 增加行为注入
扩展支持
- php >= 7.0.0
- mongodo >= 1.5.0
- tideways 4.1.6 (官方最新版本为5.0,暂不支持)
All versions of xhgui-collector with dependencies
PHP Build Version
Package Version
The package guangzhonghedd01/xhgui-collector contains the following files
Loading the files please wait ....