[−][src]Struct glommio::ExecutorStats
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]
fn clone(&self) -> ExecutorStats
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExecutorStats
[src]
impl Debug for ExecutorStats
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutorStats
impl Send for ExecutorStats
impl Sync for ExecutorStats
impl Unpin for ExecutorStats
impl UnwindSafe for ExecutorStats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,