Struct glommio::ExecutorStats
source · pub struct ExecutorStats { /* private fields */ }
Expand description
Allows information about the current state of this executor to be consumed by applications.
Implementations§
source§impl ExecutorStats
impl ExecutorStats
sourcepub fn executor_runtime(&self) -> Duration
pub fn executor_runtime(&self) -> Duration
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
sourcepub fn total_runtime(&self) -> Duration
pub fn total_runtime(&self) -> Duration
The total amount of runtime in this executor, plus poll io time
sourcepub fn scheduler_runs(&self) -> u64
pub fn scheduler_runs(&self) -> u64
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.
sourcepub fn tasks_executed(&self) -> u64
pub fn tasks_executed(&self) -> u64
Returns the amount of tasks executed in the system, over all queues.
Trait Implementations§
source§impl Clone for ExecutorStats
impl Clone for ExecutorStats
source§fn clone(&self) -> ExecutorStats
fn clone(&self) -> ExecutorStats
Returns a copy of the value. Read more
1.0.0 · 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 ExecutorStats
impl Debug for ExecutorStats
source§impl Default for ExecutorStats
impl Default for ExecutorStats
source§fn default() -> ExecutorStats
fn default() -> ExecutorStats
Returns the “default value” for a type. Read more
impl Copy for ExecutorStats
Auto Trait Implementations§
impl Freeze for ExecutorStats
impl RefUnwindSafe for ExecutorStats
impl Send for ExecutorStats
impl Sync for ExecutorStats
impl Unpin for ExecutorStats
impl UnwindSafe for ExecutorStats
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