Interface Span

    One factory invocation, possibly nested.

    interface Span {
        args: readonly unknown[];
        end?: number;
        fn: Function;
        id: number;
        name: string;
        parent?: Span;
        start: number;
        status: SpanStatus;
        touched: Set<Cell<unknown>>;
    }
    Index

    Properties

    args: readonly unknown[]
    end?: number

    Set by the recorder on close.

    fn: Function

    Factory reference; the canonical identity.

    id: number
    name: string

    Display name from scope()'s arg or fn.name. Kept separate so bundler renames of named function expressions don't leak in.

    parent?: Span
    start: number

    Set by the recorder on open. 0 outside a record() session.

    status: SpanStatus
    touched: Set<Cell<unknown>>

    Signals written while this span (not its descendants) was on top of the stack. Populated by the recorder; empty otherwise.