Giter VIP home page Giter VIP logo

xhprof-apm's Introduction

xhprof-apm's People

Contributors

12gamerensheng avatar longxinh avatar youkjw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xhprof-apm's Issues

关于apm.ini配置 GET参数 是否开启性能分析的问题

image

大佬 你好 这个在实际应用中发现了一点问题
例如tp yii laravel 等 使用模块,路由,控制器的
例如: 我登录方法想做 性能分析
但是 其他的方法我又不想做性能分析

此时 我在登录方法 (控制器里面加上代码) : $_GET['apm_debug'] = ''; 发现没有触发到amp.ini的参数 apm.debug
就是只能通过 url的形式才会触发
image

问下大佬 这个时候要怎么弄成具体通过配置某些控制器 或者 url 就性能分析 某些就不性能分析

没有分析数据

请问,我按照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 下的执行时间好像不对, 都特别大

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

apm获取不到内存占用数据,也加载不出调用图

使用的是 examples\mongo_export.php ,环境是 vagrant+homestead+php7.3.27

apm.ini

apm.auto = 0

;APM_FLAGS_NO_BUILTINS
;;APM_FLAGS_CPU
;;APM_FLAGS_MEMORY
;;APM_FLAGS_FILES
;apm.flags = APM_FLAGS_CPU | APM_FLAGS_MEMORY
;
;apm.ignored[] = md5
;
;;0 - 100
;;apm.rate = 30
;
apm.debug = apm_debug

image

image

mongo里面的部分数据:
image

curl post 大包100 continue问题

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

编译未通过

image
请教大神,这个问题可有解决的方法?

在docker环境中,PHP版本:7.1.0,docker里面是ubuntu 16.04的系统

你好 可以在函数统计中加一个字段 作者吗 author?

你好 我们公司目前在使用你的代码仓库进行 部署 ,发现非常实用。
可以在函数统计中加一个字段作者吗 ,因为我们是团队开发,只看函数名 不知道是谁写的。希望你可以加一个作者
格式如下:* @author liangdabiao 如下图所示
image

同时我们添加了 删除功能 y以及删除按钮,还有复制等 也可以把代码分享给你
image

执行时间都是0ms

image

环境:mac php7.3 laravel5.5
ini配置
apm.auto = 1

;APM_FLAGS_NO_BUILTINS
;APM_FLAGS_CPU
;APM_FLAGS_MEMORY
;APM_FLAGS_FILES
apm.flags = APM_FLAGS_CPU | APM_FLAGS_MEMORY | APM_FLAGS_NO_BUILTINS | APM_FLAGS_FILES
;apm.ignored = md5
apm.ignored[] = md5
;0 - 100
;apm.rate = 30
apm.debug = apm_debug

日志管理界面 没办法composer install

环境:linux 7.3
php版本:php8 或者 php7.4
提示信息如下:

<title>mintty screen dump</title> <style type='text/css'> body, pre { margin: 0; padding: 0; } pre { font-family: inherit; } #vt100 { float: left; border: 0px solid; padding: 1px; line-height: 116%; font-size: 9pt; font-family: 'Lucida Console', 'Lucida Console ', 'Consolas'; color: #BFBFBF; background-color: #000000; } .bd { font-weight: bold } .it { font-style: italic } .ul { text-decoration-line: underline } .st { text-decoration-line: line-through } .lu { text-decoration-line: line-through underline } .fg-color0 { color: #000000 } .bg-color0 { background-color: #000000 } .fg-color1 { color: #BF0000 } .bg-color1 { background-color: #BF0000 } .fg-color2 { color: #00BF00 } .bg-color2 { background-color: #00BF00 } .fg-color3 { color: #BFBF00 } .bg-color3 { background-color: #BFBF00 } .fg-color4 { color: #0000BF } .bg-color4 { background-color: #0000BF } .fg-color5 { color: #BF00BF } .bg-color5 { background-color: #BF00BF } .fg-color6 { color: #00BFBF } .bg-color6 { background-color: #00BFBF } .fg-color7 { color: #BFBFBF } .bg-color7 { background-color: #BFBFBF } .fg-color8 { color: #404040 } .bg-color8 { background-color: #404040 } .fg-color9 { color: #FF4040 } .bg-color9 { background-color: #FF4040 } .fg-color10 { color: #40FF40 } .bg-color10 { background-color: #40FF40 } .fg-color11 { color: #FFFF40 } .bg-color11 { background-color: #FFFF40 } .fg-color12 { color: #6060FF } .bg-color12 { background-color: #6060FF } .fg-color13 { color: #FF40FF } .bg-color13 { background-color: #FF40FF } .fg-color14 { color: #40FFFF } .bg-color14 { background-color: #40FFFF } .fg-color15 { color: #FFFFFF } .bg-color15 { background-color: #FFFFFF } .cursor { background-color: #BFBFBF } .font10 { font-family: 'F25 Blackletter Typewriter' } </style> <script> var b1 = 500; var b2 = 300; function visib (tag, state, timeout) { var bl = document.getElementsByName(tag); var vv; if (state) vv = 'visible'; else vv = 'hidden'; var i; for (i = 0; i < bl.length; i++) { bl[i].style.visibility = vv; } window.setTimeout ('visib ("' + tag + '", ' + !state + ', ' + timeout + ')', timeout); } function setup () { window.setTimeout ('visib ("blink", 0, b1)', b1); window.setTimeout ('visib ("rapid", 0, b2)', b2); } </script>

[root@iZwz9d1q2jt7z00tg5pq5gZ web]# ./composer.phar install No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires slim/slim, it could not be found in any version, there may be a typo in the package name. Problem 2 - Root composer.json requires twig/twig, it could not be found in any version, there may be a typo in the package name. Problem 3 - Root composer.json requires slim/twig-view, it could not be found in any version, there may be a typo in the package name. Problem 4 - Root composer.json requires slim/pdo, it could not be found in any version, there may be a typo in the package name. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see for more details. - It's a private package and you forgot to add a custom repository to find it Read for further common problems.

![image](https://user-images.githubusercontent.com/45571957/126143609-8594d491-49de-48d8-971a-cbe1a52c634a.png)

xhprof 在windows下安装报错 Unable to load dynamic library

 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.