ReadonlyenabledReadonlyloadReadonlystartLoad start on the main performance.now() clock.
Open a span; returns a token for end (-1 when disabled).
Optionalattrs: Readonly<Record<string, TraceAttrValue>>Optionalparent: numberOptionalattrs: Readonly<Record<string, TraceAttrValue>>End the load root (first call wins); returns elapsed ms since the start.
Optionalattrs: LoadTraceAttributesFold a worker's spans onto this timeline (clock-aligned via timeOrigin).
Optionalparent: numberMark a milestone atMs after the load start (default: now). The span runs
from the load start, so its measure duration IS the time-to-milestone. The
first call per name is recorded; every call returns the elapsed ms.
OptionalatMs: number | nullRecord an interval the caller already measured.
Optionalattrs: Readonly<Record<string, TraceAttrValue>>Optionalparent: numberTime fn; a returned promise ends the span when it settles. Returns fn's result unchanged.
Optionalattrs: Readonly<Record<string, TraceAttrValue>>Optionalparent: number
One load's trace. Every method is safe to call when tracing is OFF: the disabled implementation keeps only the start time (so
milestone/finishstill return elapsed ms) and every other call is an empty function, so an instrumented call site costs one monomorphic no-op call and no allocation.