Skip to content

Add IORuntime#liveFiberSnapshot #4444

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

Open
wants to merge 1 commit into
base: series/3.x
Choose a base branch
from

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Jul 12, 2025

Fixes #2580, #3025. The implementation is based on #3038.

@iRevive iRevive requested review from djspiewak and armanbilge July 12, 2025 08:17
@iRevive iRevive force-pushed the feature/live-fiber-snapshot branch from 5ff02a2 to 9b4c259 Compare July 12, 2025 08:29
/**
* Mapping of worker threads to their currently active fibers.
*/
def workers: Map[WorkerInfo, List[FiberInfo]]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workers will always be empty in Scala.js. Should we add FiberSnapshotPlatform and provide a platform-specific API?

/**
* The list of all global (non-worker-local) fibers.
*/
def global: List[FiberInfo]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global name feels odd. Should we use external or foreign instead?

@iRevive iRevive force-pushed the feature/live-fiber-snapshot branch from 9b4c259 to 757a237 Compare July 12, 2025 08:49
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.

Provide within-process "public" API for fiber dumps
1 participant