deno.land / x / esm@v135_2 / server / embed / polyfills / node_perf_hooks.js

node_perf_hooks.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// 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,};
esm

Version Info

Tagged at
a year ago