Skip to content

Conversation

@brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Nov 6, 2025

Example flamegraph from one of the tests:

Screenshot 2025-10-26 at 7 24 34 PM

📚 Documentation preview 📚: https://cpython-previews--141108.org.readthedocs.build/

… in the sampling profiler

- Introduce a new field in the GC state to store the frame that initiated garbage collection.
- Update RemoteUnwinder to include options for including "<native>" and "<GC>" frames in the stack trace.
- Modify the sampling profiler to accept parameters for controlling the inclusion of native and GC frames.
- Enhance the stack collector to properly format and append these frames during profiling.
- Add tests to verify the correct behavior of the profiler with respect to native and GC frames, including options to exclude them.
@brandtbucher brandtbucher self-assigned this Nov 6, 2025
@brandtbucher brandtbucher added the type-feature A feature request or enhancement label Nov 6, 2025
@brandtbucher brandtbucher requested a review from 1st1 as a code owner November 6, 2025 03:51
@brandtbucher brandtbucher added sprint interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Nov 6, 2025
@brandtbucher brandtbucher added the stdlib Standard Library Python modules in the Lib/ directory label Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review interpreter-core (Objects, Python, Grammar, and Parser dirs) sprint stdlib Standard Library Python modules in the Lib/ directory type-feature A feature request or enhancement

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant