Open this example in the interactive library
Source code
import {
performance,
createHistogram,
PerformanceObserver,
} from "node:perf_hooks";
console.log(PerformanceObserver.supportedEntryTypes.includes("measure"));
Sample output
true

Open this example in the interactive library
import {
performance,
createHistogram,
PerformanceObserver,
} from "node:perf_hooks";
console.log(PerformanceObserver.supportedEntryTypes.includes("measure"));
true