Skip to content

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.

1 participant