pub struct SchedulerStats {
pub tasks_executed: usize,
pub total_execution_time_us: u64,
pub steal_count: usize,
pub failed_steals: usize,
}Expand description
Scheduler statistics.
Fields§
§tasks_executed: usizeTotal number of tasks executed
total_execution_time_us: u64Total execution time (microseconds)
steal_count: usizeNumber of work-stealing operations
failed_steals: usizeNumber of failed steal attempts
Implementations§
Source§impl SchedulerStats
impl SchedulerStats
Sourcepub fn avg_execution_time_us(&self) -> f64
pub fn avg_execution_time_us(&self) -> f64
Get the average execution time per task.
Sourcepub fn steal_success_rate(&self) -> f64
pub fn steal_success_rate(&self) -> f64
Get the steal success rate.
Trait Implementations§
Source§impl Clone for SchedulerStats
impl Clone for SchedulerStats
Source§fn clone(&self) -> SchedulerStats
fn clone(&self) -> SchedulerStats
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 SchedulerStats
impl Debug for SchedulerStats
Source§impl Default for SchedulerStats
impl Default for SchedulerStats
Source§fn default() -> SchedulerStats
fn default() -> SchedulerStats
Returns the “default value” for a type. Read more
Source§impl Display for SchedulerStats
impl Display for SchedulerStats
Source§impl PartialEq for SchedulerStats
impl PartialEq for SchedulerStats
impl StructuralPartialEq for SchedulerStats
Auto Trait Implementations§
impl Freeze for SchedulerStats
impl RefUnwindSafe for SchedulerStats
impl Send for SchedulerStats
impl Sync for SchedulerStats
impl Unpin for SchedulerStats
impl UnwindSafe for SchedulerStats
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