Skip to main content

stat

Macro stat 

Source
macro_rules! stat {
    ($key:expr) => { ... };
    ($key:expr, $n:expr) => { ... };
}
Expand description

Add to a named counter of the current pass; the driver aggregates and logs them per round. stat!("slots_promoted") increments by 1.

stat!("slots_promoted", promoted.len() as u64);