Struct glommio::ExecutorStats [−][src]
pub struct ExecutorStats { /* fields omitted */ }
Allows information about the current state of this executor to be consumed by applications.
Implementations
impl ExecutorStats
[src]
impl ExecutorStats
[src]pub fn executor_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 total_runtime(&self) -> Duration
[src]
The total amount of runtime in this executor, plus poll io time
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 Clone for ExecutorStats
[src]fn clone(&self) -> ExecutorStats
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExecutorStats
[src]
impl Copy for ExecutorStats
[src]Auto Trait Implementations
impl RefUnwindSafe for ExecutorStats
impl RefUnwindSafe for ExecutorStats
impl Send for ExecutorStats
impl Send for ExecutorStats
impl Sync for ExecutorStats
impl Sync for ExecutorStats
impl Unpin for ExecutorStats
impl Unpin for ExecutorStats
impl UnwindSafe for ExecutorStats
impl UnwindSafe for ExecutorStats