pub struct RuntimeStats {
pub queued_high: usize,
pub queued_normal: usize,
pub queued_background: usize,
pub workers: usize,
pub sleeping_workers: usize,
pub executed: u64,
pub stolen: u64,
pub steal_attempts: u64,
pub external_spawned: u64,
pub local_spawned: u64,
pub parks: u64,
pub wakes: u64,
}Expand description
A point-in-time snapshot of runtime scheduler counters.
The values are approximate under concurrent activity. Queue counts describe runnable tasks that have not yet been taken by a worker; they are not a task-liveness or completion count.
Fields§
§queued_high: usizeRunnable high-priority tasks currently queued.
queued_normal: usizeRunnable normal-priority tasks currently queued.
queued_background: usizeRunnable background-priority tasks currently queued.
workers: usizeNumber of worker threads owned by the runtime.
sleeping_workers: usizeWorkers currently parked waiting for more work.
executed: u64Runnables taken by workers for execution.
stolen: u64Successful steals from another worker’s local queue.
This counts successful steal operations, which may transfer a batch of runnable tasks into the stealing worker’s local queue.
steal_attempts: u64Attempts to steal from another worker’s local queue.
external_spawned: u64Tasks submitted from outside a runtime worker.
local_spawned: u64Tasks submitted from the owning runtime’s worker threads.
parks: u64Times workers entered the parked state.
wakes: u64Worker wake notifications delivered for new work or shutdown.
Trait Implementations§
Source§impl Clone for RuntimeStats
impl Clone for RuntimeStats
Source§fn clone(&self) -> RuntimeStats
fn clone(&self) -> RuntimeStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more