You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(profiling): support generator unwinding (#3807)
* test(profiling): add correctness test for generator unwinding
Covers the yield-from placeholder-frame path: the PHP script chains
main -> middle -> leaf via `yield from`, and the JSON asserts that
allocations inside `leaf` report the full delegating chain. Without
resolving the placeholder frame, `middle` would be missing from the
stack.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(profiling): support generator unwinding
* test(profiling): provide test stub for zend_generator_check_placeholder_frame
`cargo test` links the profiler as a regular binary, so the Zend symbol
cannot be resolved the way it is for the cdylib (lazy, at PHP load time).
Add a passthrough stub under CFG_STACK_WALKING_TESTS and swap the import
in stack_walking.rs the same way ddog_php_prof_function_run_time_cache is
handled.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Revert "test(profiling): provide test stub for zend_generator_check_placeholder_frame"
This reverts commit ea7bb074999dbcde5a8f78d3c673383818641719.
* Revert "feat(profiling): support generator unwinding"
This reverts commit 944a3cb8104f8c6faec54be4b8d12277b6c45dcd.
* Reapply "feat(profiling): support generator unwinding"
This reverts commit 0368d3e.
* Reapply "test(profiling): provide test stub for zend_generator_check_placeholder_frame"
This reverts commit 319db5a.
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments