Comments (6)
您好, phptrace 需要安装phpext下的扩展, 安装后需要在php.ini 中启用扩展 phptrace.enabled=1
from phptrace.
的确是phptrace.enabled=1的原因 多谢~
不过现在又报:
phptrace 0.1 demo, published by infra webcore team
[24574] 30 Dec 16:45:59.815 # failed to ptrace(PEEKDATA) pid 24482
[24574] 30 Dec 16:46:00.816 # failed to ptrace(PEEKDATA) pid 24482
[24574] 30 Dec 16:46:01.816 # failed to ptrace(PEEKDATA) pid 24482
dump stack failed!
有没有一个文档可以查到错误,我们自己来跟一下?
from phptrace.
@gnever 我们会尽快完善文档, 不过目前还没有地方查看这些错误信息, 当使用-s
选项打印stack时, 只有PHP程序在执行PHP脚本时才会有效, 比如php-fpm, 如果其没有执行PHP脚本来处理请求,此时就没有PHP函数的调用栈, 因此-s
会执行失败。
from phptrace.
那是不是可以在php-fpm没有执行php脚本时,让phptrace先wait
from phptrace.
@Jonnywang phptrace -p <PID>
执行trace时, 默认会一直wait, 只是-s
选项打印当前stack时, 重试几次后就会退出, 因为打印调用栈只是抓取一个快照, 一直wait的方式不太合适。
from phptrace.
@shafreeck 多谢了~
from phptrace.
Related Issues (20)
- PHP 7.4 support
- mac 上使用pecl 安装失败
- TODO add eval code
- FAIL Trace include, require, lambda, eval [tests/trace_002.phpt]
- Compilation error
- Tracing Application
- 这个项目还在维护吗?
- phptrace -p 的参数进程ID是必填项,如何提前知道进程ID是多少?
- PHP 7.2: failed test HOT 3
- 技术交流群的二维码过期 HOT 2
- No output from `phptrace -p FPM-PID`
- phptrace 抓的日志 没有显示时间戳,怎么设置? HOT 1
- 没有输出信息啊
- make install-all returned operation not permitted
- Add support for flamegraph output format
- Unable to obtain trace for php application running on apache httpd HOT 3
- ERROR: `make' failed
- nginx php-fpm模式下 phptrace使用 HOT 1
- 网上传phptrace加入了统计功能,为什么-c -exclusive 参数不能使用?
- No such process HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phptrace.