Skip to main content

Module expression_diagnostics

Module expression_diagnostics 

Source
Expand description

Bounded, source-selected comprehension observations for diagnostic builds. Records contain scalars only. Inclusive nested intervals are not additive; returned lazy heads can be forced after the recorded expression has ended.

Structs§

Report
Scalar report drained after the measured worker’s runtime owners are released. valid covers bookkeeping/clocks, not source quality, output or performance.
SessionGuard
Installation guard. Closing removes the thread-local state before dropping it. Old attempt/program tokens cannot write into a later installation. The guard must be finished or dropped on its installing thread.

Constants§

MAX_CLAUSES
Maximum clauses counted separately in one selected comprehension.
MAX_RECORDS
Maximum retained completed attempts; overflow invalidates attribution.
MAX_SITES
Maximum registered syntax sites on one evaluation thread.

Functions§

install
Install a fresh bounded buffer before the measured timeline starts. Nested installation and capacities outside 1..=MAX_RECORDS are rejected.
register
Register one Comp selected by its loaded module and zero-based start line. Resolution must be unique, with the requested clause count. Full source coordinates are saved; the caller binds module bytes in its frozen manifest. Registration is allowed only before this installation’s first attempt.