[][src]Macro libra_metrics::monitor

macro_rules! monitor {
    ( $name:literal, $fn:expr ) => { ... };
}

Helper function to record metrics for external calls. Include call counts, time, and whether it's inside or not (1 or 0). It assumes a OpMetrics defined as OP_COUNTERS in crate::counters;