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 event loop delay sampler #25378

Closed
wants to merge 2 commits into from

Commits on Feb 7, 2019

  1. perf_hooks: implement histogram based api

    Add a sampling-based event loop delay monitor.
    
    ```js
    const { monitorEventLoopDelay } = require('perf_hooks');
    
    const h = monitorEventLoopDelay();
    
    h.enable();
    
    h.disable();
    
    console.log(h.percentiles);
    console.log(h.min);
    console.log(h.max);
    console.log(h.mean);
    console.log(h.stddev);
    console.log(h.percentile(50));
    ```
    jasnell committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    b88df96 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    386f06b View commit details
    Browse the repository at this point in the history