View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000613 | Xdebug | Profiling | public | 2010-09-03 14:56 | 2024-04-15 13:37 |
| Reporter | Tyrael | Assigned To | |||
| Priority | low | Severity | feature | Reproducibility | always |
| Status | acknowledged | Resolution | open | ||
| Product Version | 2.2dev | ||||
| Summary | 0000613: Allow starting/stoping/restarting the profiling | ||||
| Description | It would be a good thing to allow the profiler to be controlled from the userland. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.3.3 | ||||
| child of | 0002072 | acknowledged | Rewrite the profiler |
|
|
This would be good to have, but with the current architecture it's really difficult to do. So I am not targeting this for a specific version. |
|
|
Starting and stopping like the function trace feature would be great. But would it be possible to fix it like 0000938 did for debugging forked processes, basically starting a new profile instance when the PID changes? Unfortunately none of the trigger mechanisms provided by xdebug.profiler_enable_trigger work with forked processes since the standard PHP request processing is not occurring. See: https://bugs.xdebug.org/view.php?id=938 Fixed issue 0000938: Improve support for debugging forked PHP scripts |
|
|
Is this issue still relevant to you? |
|
|
Yes. I am still working with daemon PHP processes that do the 99% of the actual work and profiling is desirable. Last I tried this, I couldn't profile the daemon process either because the profiler closes as soon as the first child exits. I also think it would help when working with Swoole coroutines that handle separate requests. |