Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Open
cphoward wants to merge 1 commit into MagicStack:master
base: master
Choose a base branch
Loading
from cphoward:cph/event-loop-utilization

Conversation

Copy link

@cphoward cphoward commented Oct 16, 2023

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

nicolasdialpad and vladimir-avinkin reacted with thumbs up emoji nicolasdialpad and vladimir-avinkin reacted with heart emoji
@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
@cphoward cphoward force-pushed the cph/event-loop-utilization branch from 1f77a91 to e49e540 Compare October 16, 2023 21:01
@cphoward cphoward force-pushed the cph/event-loop-utilization branch from e49e540 to f29f595 Compare October 16, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /