Skip to content
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

Rename rayon worker threads #603

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Rename rayon worker threads #603

merged 1 commit into from
Mar 2, 2025

Conversation

Alvsch
Copy link
Contributor

@Alvsch Alvsch commented Mar 2, 2025

Description

Previously all threads were named tokio-runtime-w. This PR renames all the rayon worker threads to rayon-worker.
This makes it more straightforward to profile the program (eg. flamegraph) as there is a distinction between rayon and tokio threads.

Also removed a random session.lock file that I figured got added by accident.

Testing

Start server using cargo-flamegraph.
Join the server and then stop it.
Look at the flamegraph to see rayon-worker seperate from tokio-runtime-w.

Please follow our Coding Guidelines

@Snowiiii
Copy link
Collaborator

Snowiiii commented Mar 2, 2025

LGTM. Thank you @Alvsch 👍

@Snowiiii Snowiiii merged commit 85d457f into Pumpkin-MC:master Mar 2, 2025
10 checks passed
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.

2 participants