diff options
-rw-r--r-- | src/js/out/modules/node/perf_hooks.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/js/out/modules/node/perf_hooks.js b/src/js/out/modules/node/perf_hooks.js index 387fd00b7..af20677d7 100644 --- a/src/js/out/modules/node/perf_hooks.js +++ b/src/js/out/modules/node/perf_hooks.js @@ -17,7 +17,19 @@ class NotImplementedError extends Error { } // src/js/node/perf_hooks.js -var performance = globalThis.performance; +var constants = { + NODE_PERFORMANCE_GC_MAJOR: 4, + NODE_PERFORMANCE_GC_MINOR: 1, + NODE_PERFORMANCE_GC_INCREMENTAL: 8, + NODE_PERFORMANCE_GC_WEAKCB: 16, + NODE_PERFORMANCE_GC_FLAGS_NO: 0, + NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: 2, + NODE_PERFORMANCE_GC_FLAGS_FORCED: 4, + NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: 8, + NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: 16, + NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: 32, + NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: 64 +}, performance = globalThis.performance; class PerformanceObserver { constructor() { @@ -38,6 +50,7 @@ class PerformanceNodeTiming { } var perf_hooks_default = { performance, + constants, PerformanceEntry, PerformanceNodeTiming, [Symbol.for("CommonJS")]: 0 @@ -45,6 +58,7 @@ var perf_hooks_default = { export { performance, perf_hooks_default as default, + constants, PerformanceObserver, PerformanceNodeTiming, PerformanceEntry |