Private ReadonlynamesPrivate ReadonlyindexPrivatevaluesPrivategauges1 for a slot gauge() has written (kept across reset()), else 0.
Private ReadonlyringsPrivate ReadonlyresetAdd n (default 1) to a counter.
Raise a high-water mark to v if it is larger.
Overwrite a gauge with its current value (survives reset).
Convenience for cold paths: add to a counter by name.
Append a structured record to the bounded ring for kind.
Records of one kind, oldest first (a copy).
Flat name -> value map of every registered counter.
Run hook on every reset. For per-window state a counter's owner
keeps beside it (e.g. the duplicate-decode history behind
decode.duplicates), which must start the new window empty too. Returns
an unsubscribe.
Start a new window: zero every counter and high-water mark, drop every record, and run the onReset hooks. Gauges keep their current value. Slots stay valid.
The counter store.
Namenarrows the names it accepts; the process-wide perfCounters takes only declared ones, while a barenew PerfCounters()(tests of the store itself) takes any string.