Expand description
Opt-in execution telemetry (doc §269). Collected via a thread-local so no
validation API signatures change. Enable with enable(), consume with
take().
Shape-cache counters are accumulated locally by each evaluator and published once when it is dropped, avoiding a thread-local operation per lookup.
Structs§
- Profile
Collector - Query
Record - Per-query performance record.
- Shape
Cache Record - Aggregate shape-cache telemetry for one profiling session.
- Shape
Record - Per-shape or per-rule wall-clock record. One entry per distinct label
(shape IRI,
@Nslot id, orrule[N]).
Enums§
Functions§
- enable
- Enable profiling for the current thread. Resets any previous collector.
- evidence_
visits - Read the evidence-visit counter without resetting it, for deltas around a region of work.
- fingerprint
- Derive a short fingerprint from a canonical query string.
- record
- Record one query invocation. No-op when profiling is disabled.
- record_
shape - Record one shape/rule evaluation. No-op when profiling is disabled.
- take
- Disable profiling and return the collected data, if any.
- take_
evidence_ visits - Read and reset the evidence-visit counter for this thread.
- take_
path_ probes - Read and reset the path-probe counter for this thread.
- timed
- Helper: measure
fand record the result underfingerprint. Returns the value produced byf.