Trait netstack3_core::context::CounterContext
source · pub trait CounterContext {
// Provided method
fn increment_debug_counter(&mut self, _key: &'static str) { ... }
}
Expand description
A context that stores performance counters.
CounterContext
exposes access to named counters for observation and
debugging.
Provided Methods§
sourcefn increment_debug_counter(&mut self, _key: &'static str)
fn increment_debug_counter(&mut self, _key: &'static str)
Increment the debug counter with the given key.
This should not be relied on except in testing environments. The default no-op implementation is expected to be optimized out completely by the compiler.