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

Add event loop idle and active time #399

Open
xamgore opened this issue Sep 8, 2020 · 1 comment
Open

Add event loop idle and active time #399

xamgore opened this issue Sep 8, 2020 · 1 comment

Comments

@xamgore
Copy link

xamgore commented Sep 8, 2020

The eventLoopUtilization() method returns an object that contains the cumulative duration of time the event loop has been both idle and active as a high-resolution milliseconds timer.

With the new release, there are two extra metrics: nodejs/node#34938

@alex3d
Copy link

alex3d commented Oct 18, 2021

I've added event loop idle metric in #474
I'm not sure whether the active metric is really needed (actually it is derived from idle in node source code https://github.com/nodejs/node/blob/master/lib/internal/perf/event_loop_utilization.js).
Event loop utilization could be calculated as 1 - rate(nodejs_eventloop_idle_seconds_total).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants