Struct metrics_util::debugging::Snapshot
source · pub struct Snapshot(_);
Expand description
A point-in-time snapshot of all metrics in DebuggingRecorder
.
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub fn into_hashmap(
self
) -> HashMap<CompositeKey, (Option<Unit>, Option<SharedString>, DebugValue)>
pub fn into_hashmap( self ) -> HashMap<CompositeKey, (Option<Unit>, Option<SharedString>, DebugValue)>
Converts this snapshot to a mapping of metric data, keyed by the metric key itself.
sourcepub fn into_vec(
self
) -> Vec<(CompositeKey, Option<Unit>, Option<SharedString>, DebugValue)>
pub fn into_vec( self ) -> Vec<(CompositeKey, Option<Unit>, Option<SharedString>, DebugValue)>
Converts this snapshot to a vector of metric data tuples.