package metrics
Ordering
- Alphabetic
Visibility
- Public
- All
Value Members
-
object
HotPathMetrics
Opt-in invocation counters for the ALS performance harness — see documentation/performance-measurement-harness.md.
Opt-in invocation counters for the ALS performance harness — see documentation/performance-measurement-harness.md.
Lives in
main(not test) only so production hot-path code can call inc; it stays dormant unless a test or benchmark calls enable. Two invariants worth preserving on edit: disabled is the production default and inc is then a single volatile read (no allocation/lock), and the state is plainvar/mutable.Mapwith nojava.util.concurrentto keep JVM/JS parity (shared code).