Bun inherits nodeRuntimeMetricsIntegration automatically but uses JavaScriptCore (not V8). Several APIs need special handling:
perf_hooks.monitorEventLoopDelay() — throws NotImplementedError, must catch and skip
v8.getHeapStatistics() — stub, needs bun:jsc.heapStats() fallback or skip
performance.eventLoopUtilization() — partial, best-effort
- GC via
PerformanceObserver — uncertain with JSC, needs validation
Bun inherits
nodeRuntimeMetricsIntegrationautomatically but uses JavaScriptCore (not V8). Several APIs need special handling:perf_hooks.monitorEventLoopDelay()— throwsNotImplementedError, must catch and skipv8.getHeapStatistics()— stub, needsbun:jsc.heapStats()fallback or skipperformance.eventLoopUtilization()— partial, best-effortPerformanceObserver— uncertain with JSC, needs validation