pub struct NodeLatencyStats {
pub histograms: HashMap<String, LatencyHistogram>,
}Expand description
Per-node latency statistics keyed by node identifier string.
Wraps a HashMap of LatencyHistograms so callers can record and
query the processing latency of individual graph nodes.
Fields§
§histograms: HashMap<String, LatencyHistogram>Maps node identifier to latency histogram for that node.
Implementations§
Source§impl NodeLatencyStats
impl NodeLatencyStats
Sourcepub fn record_node(&mut self, node_id: &str, latency_ns: u64)
pub fn record_node(&mut self, node_id: &str, latency_ns: u64)
Records a latency sample for the node identified by node_id.
The histogram is created on the first call for each unique node_id.
Trait Implementations§
Source§impl Clone for NodeLatencyStats
impl Clone for NodeLatencyStats
Source§fn clone(&self) -> NodeLatencyStats
fn clone(&self) -> NodeLatencyStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeLatencyStats
impl Debug for NodeLatencyStats
Source§impl Default for NodeLatencyStats
impl Default for NodeLatencyStats
Source§fn default() -> NodeLatencyStats
fn default() -> NodeLatencyStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeLatencyStats
impl RefUnwindSafe for NodeLatencyStats
impl Send for NodeLatencyStats
impl Sync for NodeLatencyStats
impl Unpin for NodeLatencyStats
impl UnsafeUnpin for NodeLatencyStats
impl UnwindSafe for NodeLatencyStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more