pub struct ExecutorStats {
pub tasks_spawned: u64,
pub tasks_completed: u64,
pub tasks_pending: u64,
pub total_execution_time_ns: u64,
pub waker_notifications: u64,
pub io_operations: u64,
}Expand description
Public statistics structure for monitoring executor performance.
Fields§
§tasks_spawned: u64Total number of tasks spawned
tasks_completed: u64Total number of tasks completed
tasks_pending: u64Number of tasks currently pending
total_execution_time_ns: u64Total execution time in nanoseconds
waker_notifications: u64Number of waker notifications sent.
Currently untracked: the executor does not increment this counter yet, so it always reads 0 (pending wiring in the executor core/waker paths).
io_operations: u64Number of I/O operations processed.
Currently untracked: the executor does not increment this counter yet, so it always reads 0 (pending wiring in the executor core).
Trait Implementations§
Source§impl Clone for ExecutorStats
impl Clone 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 UnsafeUnpin 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