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

feat(uvloop): Support event loop utilization queries #579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cphoward
Copy link

This change seeks to expose libuv's internal uv_metrics_idle_time to permit users to tune their applications. This change is inspired by Nodejs' internalEventLoopUtilization.

The heart of this change is:

def _event_loop_utilization(self):
    """Returns idle and active time in milliseconds and the percentage of
    time the event loop is active
    """

    ...

    return idle, active, utilization

@cphoward cphoward marked this pull request as draft October 16, 2023 18:00
@cphoward cphoward force-pushed the cph/event-loop-utilization branch 3 times, most recently from fbbdf59 to 1f77a91 Compare October 16, 2023 20:56
@cphoward cphoward marked this pull request as ready for review October 16, 2023 20:57
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