pub struct CollectorTiming {
pub name: String,
pub start_offset_ms: f64,
pub elapsed_ms: f64,
pub success: bool,
}Expand description
Per-collector timing for a single stat collection run.
start_offset_ms is the wall time between the top of the collection cycle and
the moment this collector’s future was first polled. A non-trivial offset
indicates the spawn/scheduling loop or the runtime is delaying first poll,
which means collectors are not starting in parallel as intended.
elapsed_ms is the wall time between first poll and completion.
Fields§
§name: StringName of the collector (e.g. “units”, “pid1”, “dbus_stats”)
start_offset_ms: f64Milliseconds from top of the run until the spawned future’s first poll. Should be small (< a few ms) when collectors are truly running in parallel.
elapsed_ms: f64Milliseconds from first poll to future completion.
success: boolWhether the collector returned Ok.
Trait Implementations§
Source§impl Clone for CollectorTiming
impl Clone for CollectorTiming
Source§fn clone(&self) -> CollectorTiming
fn clone(&self) -> CollectorTiming
Returns a duplicate of the value. Read more
1.0.0 · 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 CollectorTiming
impl Debug for CollectorTiming
Source§impl Default for CollectorTiming
impl Default for CollectorTiming
Source§fn default() -> CollectorTiming
fn default() -> CollectorTiming
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollectorTiming
impl<'de> Deserialize<'de> for CollectorTiming
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CollectorTiming
impl PartialEq for CollectorTiming
Source§impl Serialize for CollectorTiming
impl Serialize for CollectorTiming
impl StructuralPartialEq for CollectorTiming
Auto Trait Implementations§
impl Freeze for CollectorTiming
impl RefUnwindSafe for CollectorTiming
impl Send for CollectorTiming
impl Sync for CollectorTiming
impl Unpin for CollectorTiming
impl UnsafeUnpin for CollectorTiming
impl UnwindSafe for CollectorTiming
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.