OptionalasyncAsyncLocalStorage class to use for nesting across await. Detected
automatically on Node.js, Bun, Deno and where it is a global; pass it
explicitly on runtimes where it is only importable, e.g. Cloudflare
Workers: import { AsyncLocalStorage } from 'node:async_hooks'.
OptionalblockingDetailed mode flags calls whose synchronous part runs at least this long (ms, default 50; 0 disables)
OptionalenabledSet to false to make every tracked function a plain pass-through
OptionalenableAttach nested tracked calls to their caller (default true)
OptionalonCalled with every finished top-level tree (also when silent)
OptionalpluginsPlugins/exporters to register
OptionalreporterReplace console output: called with each reported top-level tree
OptionalsampleFraction of calls to track (default 1)
OptionalsilentSuppress console output (stats, hooks and exporters still run)
OptionalstatsCollect per-label statistics (default true)
OptionalthresholdOnly report calls taking at least this many milliseconds (default 0)
OptionaltrackingDetail level (default "balanced")
OptionaltrackRecord heap change per call (default true)
Configuration for
createTracePerf()/new OptimizedPerformanceMonitor()