uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

feat(uvloop): Support event loop utilization queries

Open cphoward opened this issue 2 years ago • 0 comments

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 avatar Oct 16 '23 17:10 cphoward