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

notify context thread listeners when the scope stack becomes empty or non-empty #4325

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

richardstartin
Copy link
Member

What Does This Do

Replaces a notification on first push to a scope stack with notifications for becoming empty/non-empty

Motivation

This allows the profiler to know which threads have an active context, without needing to care which one is active, which limits the occurrence of the relatively expensive operation of updating the wallclock profiler's thread filter. Just doing this once is not enough because in over-provisioned applications with large thread pools we see some threads might do some traced activity once and become idle.

Additional Notes

@richardstartin richardstartin marked this pull request as ready for review November 28, 2022 11:53
@richardstartin richardstartin requested a review from a team as a code owner November 28, 2022 11:53
@richardstartin richardstartin merged commit a9b9d5b into master Nov 28, 2022
@richardstartin richardstartin deleted the rgs/context-thread-filter-rework branch November 28, 2022 13:46
@github-actions github-actions bot added this to the 1.2.0 milestone Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants