aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-01 21:10:55 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-01 21:10:55 -0700
commit9fecb3dfb9597f7774a68fbf51557ff8576be84d (patch)
treed130f3a86dc5f84ce5ecfa7af3873cf60b3be75f
parent617226e5845181e1947671b3b7b96efad82555be (diff)
downloadbun-9fecb3dfb9597f7774a68fbf51557ff8576be84d.tar.gz
bun-9fecb3dfb9597f7774a68fbf51557ff8576be84d.tar.zst
bun-9fecb3dfb9597f7774a68fbf51557ff8576be84d.zip
Bump
-rw-r--r--src/js/out/modules/node/perf_hooks.js16
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