pub struct ExecutorMetrics {
pub spawner: SpawnerIdentifier,
pub executor: usize,
pub polls: u64,
pub busy_nanoseconds: u64,
pub idle_nanoseconds: Option<u64>,
pub started_nanoseconds: u64,
pub timestamp_nanoseconds: u64,
}Expand description
Cumulative counters of one executor (a core or an operating system thread).
Fields§
§spawner: SpawnerIdentifierLowest spawner registration of this executor. It can change between
snapshots; match executors by Self::executor.
executor: usizeEmbassy executor identifier (Spawner::executor_id), stable for the
executor’s lifetime.
polls: u64§busy_nanoseconds: u64Wall-clock time spent polling managed tasks, including a poll in progress. Never decreases.
idle_nanoseconds: Option<u64>Time spent waiting for work, including a wait in progress, once the
platform executor created its ExecutorActivity. Never decreases.
started_nanoseconds: u64Clock value when the counters were created.
timestamp_nanoseconds: u64Clock value at which these counters were read. Divide busy and idle differences by differences of this value. Never decreases.
Trait Implementations§
Source§impl Clone for ExecutorMetrics
impl Clone for ExecutorMetrics
Source§fn clone(&self) -> ExecutorMetrics
fn clone(&self) -> ExecutorMetrics
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 ExecutorMetrics
impl Debug for ExecutorMetrics
Source§impl PartialEq for ExecutorMetrics
impl PartialEq for ExecutorMetrics
Source§fn eq(&self, other: &ExecutorMetrics) -> bool
fn eq(&self, other: &ExecutorMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExecutorMetrics
impl Eq for ExecutorMetrics
impl StructuralPartialEq for ExecutorMetrics
Auto Trait Implementations§
impl Freeze for ExecutorMetrics
impl RefUnwindSafe for ExecutorMetrics
impl Send for ExecutorMetrics
impl Sync for ExecutorMetrics
impl Unpin for ExecutorMetrics
impl UnsafeUnpin for ExecutorMetrics
impl UnwindSafe for ExecutorMetrics
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