grapher.DynamicRefTraceEvent

A single trace event emitted during dynamic-ref inference.

Usage

Source

grapher.DynamicRefTraceEvent(
    kind,
    name,
    elapsed_s=0.0,
    detail=dict(),
)

Parameter Attributes

kind: str
name: str
elapsed_s: float = 0.0
detail: dict[str, Any] = dict()

Attributes

kind: str

Event type ("infer", "expand-env", "build-domains", "build-value-domains", "offset-scalar-fallback", "offset-scalar-wide", plus "-error" variants).

name: str

Function that emitted the event.

elapsed_s: float

Wall-clock seconds spent in the traced operation. Defaults to 0.0 for structural events (e.g. "index-abstract", "index-enumerated") that report what happened rather than how long it took.

detail: dict[str, Any]
Flexible per-event payload (target counts, branch estimates, expressions, etc.).