Macro diem_metrics::monitor

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

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;