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.
- 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.
- timed
- Helper: measure
fand record the result underfingerprint. Returns the value produced byf.