Skip to content

performance.nodeTiming.uvMetricsInfo from node:perf_hooks behaves differently in Deno compared to Node.js #31085

@davidebombelli

Description

@davidebombelli

Summary

The property performance.nodeTiming.uvMetricsInfo seems to be undefined in Deno, when instead it should be a wrapper to the uv_metrics_info function.

Version

deno 2.5.4 (stable, release, x86_64-unknown-linux-gnu)

v8 14.0.365.5-rusty

typescript 5.9.2

OS

Linux Mint 22 Wilma

Steps to reproduce

  1. Create file test.mjs with the following content:
import { performance } from 'node:perf_hooks';

setImmediate(() => {
  console.log(performance.nodeTiming.uvMetricsInfo);
});
  1. Run file deno test.mjs.

Expected Behaviour

{ loopCount: 1, events: 0, eventsWaiting: 0 }

Actual Behaviour

undefined

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions