Skip to content

Experiment: add Fiber yield trace to SchedulerTrace #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ysbaddaden
Copy link
Contributor

@ysbaddaden ysbaddaden commented Mar 27, 2025

  1. Refactors FiberTrace to use slices instead of arrays.

    We could avoid a duplication with a small refactor in stdlib —I'll push that before we release 1.16.0.

  2. Augments SchedulerTrace from Print scheduler details (ExecutionContext) #18 to also print the yield trace of suspended fibers when FiberTrace is also loaded.

    Some of the difficulty is that we're stopping the world, and I don't think it's wise or possible to allocate while the world is stopped, so we use another method to print the backtrace that doesn't (we make sure to load the debug info beforehand).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant