pub struct WorkerStats {Show 15 fields
pub tasks_polled: u64,
pub completed_count: u64,
pub yielded_count: u64,
pub waiting_count: u64,
pub cas_failures: u64,
pub empty_scans: u64,
pub yield_queue_polls: u64,
pub signal_polls: u64,
pub steal_attempts: u64,
pub steal_successes: u64,
pub leaf_summary_checks: u64,
pub leaf_summary_hits: u64,
pub leaf_steal_attempts: u64,
pub leaf_steal_successes: u64,
pub timer_fires: u64,
}Expand description
Comprehensive statistics for fast worker.
Fields§
§tasks_polled: u64Number of tasks polled.
completed_count: u64Number of tasks that completed.
yielded_count: u64Number of tasks that yielded cooperatively.
waiting_count: u64Number of tasks that are waiting (Poll::Pending, not yielded).
cas_failures: u64Number of CAS failures (contention or already executing).
empty_scans: u64Number of empty scans (no tasks available).
yield_queue_polls: u64Number of polls from yield queue (hot path).
signal_polls: u64Number of polls from signals (cold path).
steal_attempts: u64Number of work stealing attempts from other workers.
steal_successes: u64Number of successful work steals.
leaf_summary_checks: u64Number of leaf summary checks.
leaf_summary_hits: u64Number of leaf summary hits (summary != 0).
leaf_steal_attempts: u64Number of attempts to steal from other workers’ leaf partitions.
leaf_steal_successes: u64Number of successful steals from other workers’ leaf partitions.
timer_fires: u64Trait Implementations§
Source§impl Clone for WorkerStats
impl Clone for WorkerStats
Source§fn clone(&self) -> WorkerStats
fn clone(&self) -> WorkerStats
Returns a duplicate 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 WorkerStats
impl Debug for WorkerStats
Source§impl Default for WorkerStats
impl Default for WorkerStats
Source§fn default() -> WorkerStats
fn default() -> WorkerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkerStats
impl RefUnwindSafe for WorkerStats
impl Send for WorkerStats
impl Sync for WorkerStats
impl Unpin for WorkerStats
impl UnwindSafe for WorkerStats
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