deno.land / x / esm@v135_2 / server / embed / polyfills / node_perf_hooks.js
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758// https://nodejs.org/api/perf_hooks.html
function panic() { throw new Error( `[esm.sh] "node:perf_hooks" is not supported in browser environment.`, );}
export const performance = window.performance;export const PerformanceObserver = window.PerformanceObserver;export const PerformanceEntry = window.PerformanceEntry;export const PerformanceObserverEntryList = window.PerformanceObserverEntryList;
export class PerformanceNodeTiming extends PerformanceEntry { constructor() { panic(); }}
export class Histogram { constructor() { panic(); }}
export class IntervalHistogram extends Histogram { constructor() { panic(); }}
export class RecordableHistogram extends Histogram { constructor() { panic(); }}
export function createHistogram() { panic();}
export function monitorEventLoopDelay() { panic();}
export default { performance, PerformanceEntry, PerformanceNodeTiming, PerformanceObserver, PerformanceObserverEntryList, Histogram, IntervalHistogram, RecordableHistogram, createHistogram, monitorEventLoopDelay,};
Version Info