Skip to content

Conversation

@gefjon
Copy link
Contributor

@gefjon gefjon commented Feb 20, 2024

Description of Changes

Set a name for Rayon threads, so that they don't inherit their thread names from the parent, i.e. tokio-runtime-w.

Use the same name for all Rayon threads, i.e. ignore the thread-index, so that tools like perf can merge all the Rayon threads into a single backtrace.

API and ABI breaking changes

If this is an API or ABI breaking change, please apply the
corresponding GitHub label.

Expected complexity level and risk

1

How complicated do you think these changes are? Grade on a scale from 1 to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex change.

This complexity rating applies not only to the complexity apparent in the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning ways.

Set a name for Rayon threads, so that they don't inherit their thread names
from the parent, i.e. `tokio-runtime-w`.

Use the same name for all Rayon threads, i.e. ignore the thread-index,
so that tools like `perf` can merge all the Rayon threads into a single backtrace.
@Centril Centril added this pull request to the merge queue Feb 21, 2024
Merged via the queue into master with commit c416f68 Feb 21, 2024
@Centril Centril deleted the phoebe/rayon-thread-name branch February 21, 2024 18:34
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.

3 participants