Skip to content

eventLoopUtilization not available in perf_hooks.performance #36801

@RossHathaway

Description

@RossHathaway
  • Version v12.18.4:
  • **Platform Darwin <my computer's name> 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64
  • Also Platform Linux my computer's name> 5.3.0-62-generic fs: fix fd leak in ReadStream.destroy() #56~18.04.1-Ubuntu SMP Wed Jun 24 16:17:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux**:
  • Subsystem perf_hooks

What steps will reproduce the bug?

const { eventLoopUtilization } = require('perf_hooks').performance;
console.log('ELU', eventLoopUtilization)

How often does it reproduce? Is there a required condition?

No required condition that I know of; always been a problem as far as I know

What is the expected behavior?

output is: ELU [Function: eventLoopUtilization]

What do you see instead?

output is: ELU undefined

Additional information

I copied the require line from here: https://nodejs.org/docs/latest-v12.x/api/perf_hooks.html#perf_hooks_performance_eventlooputilization_util1_util2

Metadata

Metadata

Assignees

No one assigned

    Labels

    perf_hooksIssues and PRs related to the implementation of the Performance Timing API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions