longxinh / xhprof-apm Goto Github PK
View Code? Open in Web Editor NEWXhprof APM
License: Apache License 2.0
Xhprof APM
License: Apache License 2.0
请问,我按照readme完成了php扩展的安装以及web系统的部署,并且访问同一台web服务器上的其他web系统,但apm的web页面一直显示“没有分析数据”,apm数据库数据表中也确实没有数据,理解是我这边不了解apm数据如何采集和写入mysql导致,还请您抽空解答,多谢
下面是php相关的配置:
php.ini中
[xhprof_apm]
xhprof_apm.config_ini = /etc/php.d/xhprof_apm.ini
xhprof_apm.export = php
xhprof_apm.php_file = /xxx/mysql_export.php
xhprof_apm.ini中
extension = xhprof_apm.so
apm.auto = 1
apm.flags = APM_FLAGS_NO_BUILTINS | APM_FLAGS_CPU | APM_FLAGS_MEMORY
;apm.ignored[] = md5
apm.rate = 100
apm.debug = apm_debug
mysql_export.php中按照examples/mysql_export.php修改数据库配置做了调整,该php文件何时会执行,将apm数据写入到数据库中?还请您抽空解答,多谢
macos 环境, php7 下的执行时间好像不对, 都特别大
mysqli_stmt::execute
43974.228 ms
mysqli::prepare
19886.453 ms
StmtModel::_parseSpecCondition
5118.376 ms
NeatMysqliStmt::Query
3726.674 ms
StmtModel::Get
3168.445 ms
substr
3124.396 ms
这个页面其实不是很慢, 顶多300ms
堆栈信息能把文件名和函数所在行号带上吗
headers = curl_slist_append(headers, "User-Agent: Xhprof-apm");
1774行后面需要添加
headers = curl_slist_append(headers, "Expect:");
小于1000ms可能还需要个signal设置。
防止有些服务端不能很好处理http 1.1 post 大包返回100 continue导致的拆包或请求挂住。
觉得能不用curl最好不用curl。封装不好容易搞死客户端。
http://www.mamicode.com/info-detail-1555158.html
你好 我们公司目前在使用你的代码仓库进行 部署 ,发现非常实用。
可以在函数统计中加一个字段作者吗 ,因为我们是团队开发,只看函数名 不知道是谁写的。希望你可以加一个作者
格式如下:* @author liangdabiao 如下图所示
环境:linux 7.3
php版本:php8 或者 php7.4
提示信息如下:
php -v
Warning: PHP Startup: Unable to load dynamic library 'xhprof' (tried: D:/program/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\xhprof (Ҳָģ顣), D:/program/laragon/bin/php/php-7.2.19-Win32-VC15-x64/ext\php_xhprof.dll (Ҳָģ顣)) in Unknown on line 0
PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
下载的dll是 php_xhprof-2.2.3-7.2-nts-vc15-x64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.