pub struct NodeDuration {
pub node: String,
pub runs: usize,
pub total_secs: i64,
pub max_secs: i64,
pub single: usize,
}Expand description
Per-node duration breakdown, aggregated across every loaded run.
A duration here is the span between a node’s first and last recorded event within one run — not time actually spent working. A node visited more than twice in one run (a retry, or a park/resume gap) has any idle time in between folded into that span, so this reads as an upper bound on the node’s wall-clock cost, not a measurement of it.
Fields§
§node: StringNode name, as it appears in Event::node.
runs: usizeRuns where the node’s span could be measured (at least two events).
total_secs: i64Sum of every measured run’s span, in seconds.
max_secs: i64The longest single run’s span, in seconds.
single: usizeRuns where the node had exactly one event — visited, but with no
second timestamp to measure a span against. Counted apart from runs
so a caller never has to guess whether a low mean hides unmeasured
visits.
Implementations§
Trait Implementations§
Source§impl Clone for NodeDuration
impl Clone for NodeDuration
Source§impl Debug for NodeDuration
impl Debug for NodeDuration
Source§impl Default for NodeDuration
impl Default for NodeDuration
Source§impl PartialEq for NodeDuration
impl PartialEq for NodeDuration
impl StructuralPartialEq for NodeDuration
Auto Trait Implementations§
impl Freeze for NodeDuration
impl RefUnwindSafe for NodeDuration
impl Send for NodeDuration
impl Sync for NodeDuration
impl Unpin for NodeDuration
impl UnsafeUnpin for NodeDuration
impl UnwindSafe for NodeDuration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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