pub struct MetricsSnapshot {
pub timestamp_nanoseconds: u64,
pub tasks: Vec<TaskMetrics>,
pub executors: Vec<ExecutorMetrics>,
}Expand description
Sample of all task and executor counters. Each task’s and each executor’s counters are read consistently; the set is not one atomic instant.
Fields§
§timestamp_nanoseconds: u64Monotonic clock value read after every counter of the snapshot, on the
same clock as the counters. Use it for task shares; executors carry
their own ExecutorMetrics::timestamp_nanoseconds.
tasks: Vec<TaskMetrics>§executors: Vec<ExecutorMetrics>Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl PartialEq for MetricsSnapshot
impl PartialEq for MetricsSnapshot
Source§fn eq(&self, other: &MetricsSnapshot) -> bool
fn eq(&self, other: &MetricsSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MetricsSnapshot
impl StructuralPartialEq for MetricsSnapshot
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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