[][src]Struct glommio::ExecutorStats

pub struct ExecutorStats { /* fields omitted */ }

Allows information about the current state of this executor to be consumed by applications.

Implementations

impl ExecutorStats[src]

pub fn total_runtime(&self) -> Duration[src]

The total amount of runtime in this executor so far.

This is especially important for spinning executors, since the amount of CPU time you will see in the operating system will be a far cry from the CPU time it actually spent executing. Sleeping or Spinning are not accounted here

pub fn scheduler_runs(&self) -> u64[src]

Returns the amount of times the scheduler loop was called. Glommio scheduler selects a task queue to run and runs many tasks in that task queue. This number corresponds to the amount of times was called upon to select a new queue.

pub fn tasks_executed(&self) -> u64[src]

Returns the amount of tasks executed in the system, over all queues.

Trait Implementations

impl Clone for ExecutorStats[src]

impl Copy for ExecutorStats[src]

impl Debug for ExecutorStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.