light / xhgui
From perftools/xhgui,A web based interface for viewing profile data collected by XHProf.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 126
Open Issues: 0
Language:JavaScript
Requires
- php: >=5.3.0
- pimple/pimple: ^1.0.2
- slim/slim: ^2.6.3
- slim/views: ^0.1.0
- twig/twig: ~1.17
Requires (Dev)
- ext-dom: *
- alcaeus/mongo-php-adapter: ^1.0
- phpunit/phpunit: 3.7.x-dev
Suggests
- ext-mongo: Mongo is needed to store profiler results for PHP < 7.
- ext-mongodb: Mongo is needed to store profiler results for PHP > 7.
- ext-uprofiler: You need to install either xhprof or uprofiler to use XHGui.
- ext-xhprof: You need to install either xhprof or uprofiler to use XHGui.
- alcaeus/mongo-php-adapter: Mongo PHP Adapter is required for PHP >7 (when using ext-mongodb)
- workerman/workerman: Udp server support with Workerman
This package is auto-updated.
Last update: 2024-10-08 20:29:08 UTC
README
xhgui的安装信息可到源项目查看文档:xhgui
xhprof
如果是PHP7环境的话,推荐安装longxinH/xhprof 扩展
部署
LNMP环境部署
需要安装mongodb扩展, 如果希望使用udp方式接受数据的话, 可以选择workerman或者swoole, 安装相应依赖的扩展即可
$ composer create-project light/xhgui xhgui
nginx:
server {
listen 80;
server_name www.php-xhgui.dev php-xhgui.dev;
root /server/wwwroot/xhprof/webroot;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Docker(推荐)
$ cp env-docker .env $ docker-compose build $ docker-compose up -d
如果发现nginx的80或者9000端口别占用,可以通过修改 .env 文件中的端口号
查看输出日志:
$ docker-compose logs -f