Skip to main content

session_counters

Function session_counters 

Source
pub fn session_counters() -> &'static SessionCounters
Expand description

This process’s session accumulators.

Deliberately not behind the arming gate. Every bump is a relaxed atomic increment on a counter that never leaves this process unless init was reached, so gating them would buy nothing and would put an is_armed() branch on eleven hot call sites. The gate that matters is on the write paths, and a snapshot of these numbers only ever reaches a payload through one.