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 #511

Closed
wants to merge 7 commits into from

Conversation

caseydialpad
Copy link

@caseydialpad caseydialpad commented Nov 1, 2022

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

@caseydialpad caseydialpad changed the title feat(idle_time): Configure and monitor idle loop feat(uvloop): Support event loop utilization queries 090bf1f Nov 3, 2022
@caseydialpad caseydialpad changed the title feat(uvloop): Support event loop utilization queries 090bf1f feat(uvloop): Support event loop utilization queries Nov 3, 2022
@caseydialpad caseydialpad marked this pull request as ready for review November 3, 2022 20:34
@caseydialpad
Copy link
Author

Tests will be fixed by a change like #512.

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.

None yet

1 participant