Interface Span
interface Span {
args: readonly unknown[];
end?: number;
fn: Function;
id: number;
name: string;
parent?: Span;
start: number;
status: SpanStatus;
touched: Set<Cell<unknown>>;
}
args: readonly unknown[];
end?: number;
fn: Function;
id: number;
name: string;
parent?: Span;
start: number;
status: SpanStatus;
touched: Set<Cell<unknown>>;
}
Properties
Readonlyargs
args: readonly unknown[]
Optionalend
end?: number
Set by the recorder on close.
Readonlyfn
fn: Function
Factory reference; the canonical identity.
Readonlyid
id: number
Readonlyname
name: string
Display name from scope()'s arg or fn.name. Kept separate so
bundler renames of named function expressions don't leak in.
Optional Readonlyparent
start
start: number
Set by the recorder on open. 0 outside a record() session.
status
Readonlytouched
Signals written while this span (not its descendants) was on top of the stack. Populated by the recorder; empty otherwise.
One factory invocation, possibly nested.