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

perf_hooks: add idleTime and event loop util #34938

Closed
wants to merge 1 commit into from

Commits on Aug 27, 2020

  1. perf_hooks: add idleTime and event loop util

    Use uv_metrics_idle_time() to return a high resolution millisecond timer
    of the amount of time the event loop has been idle since it was
    initialized.
    
    Include performance.eventLoopUtilization() API to handle the math of
    calculating the idle and active times. This has been added to prevent
    accidental miscalculations of the event loop utilization. Such as not
    taking into consideration offsetting nodeTiming.loopStart or timing
    differences when being called from a Worker thread.
    trevnorris committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    47b1caf View commit details
    Browse the repository at this point in the history