pub struct SchedulingMetrics {
pub tasks_scheduled: u64,
pub avg_scheduling_time: Duration,
pub queue_length: usize,
pub efficiency: f64,
pub tasks_by_priority: HashMap<TaskPriority, u64>,
pub avg_wait_time: Duration,
pub throughput: f64,
pub last_updated: SystemTime,
}Expand description
Scheduling metrics for monitoring
Fields§
§tasks_scheduled: u64Total tasks scheduled
avg_scheduling_time: DurationAverage scheduling time
queue_length: usizeCurrent queue length
efficiency: f64Scheduling efficiency (0.0-1.0)
tasks_by_priority: HashMap<TaskPriority, u64>Tasks by priority level
avg_wait_time: DurationAverage wait time
throughput: f64Throughput (tasks per second)
last_updated: SystemTimeLast updated timestamp
Trait Implementations§
Source§impl Clone for SchedulingMetrics
impl Clone for SchedulingMetrics
Source§fn clone(&self) -> SchedulingMetrics
fn clone(&self) -> SchedulingMetrics
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 SchedulingMetrics
impl Debug for SchedulingMetrics
Auto Trait Implementations§
impl Freeze for SchedulingMetrics
impl RefUnwindSafe for SchedulingMetrics
impl Send for SchedulingMetrics
impl Sync for SchedulingMetrics
impl Unpin for SchedulingMetrics
impl UnwindSafe for SchedulingMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more