pub struct SchedulerStats {
pub total_submitted: u64,
pub total_completed: u64,
pub total_rejected: u64,
pub total_preemptions: u64,
pub total_processing_time: f64,
pub total_response_time: f64,
pub max_response_time: f64,
pub queue_length: usize,
}Expand description
Scheduler statistics.
Fields§
§total_submitted: u64Total jobs submitted.
total_completed: u64Total jobs completed.
total_rejected: u64Total jobs rejected (queue full).
total_preemptions: u64Total preemptions.
total_processing_time: f64Total time processing.
total_response_time: f64Sum of response times (for mean calculation).
max_response_time: f64Max response time observed.
queue_length: usizeCurrent queue length.
Implementations§
Source§impl SchedulerStats
impl SchedulerStats
Sourcepub fn mean_response_time(&self) -> f64
pub fn mean_response_time(&self) -> f64
Mean response time.
Sourcepub fn throughput(&self) -> f64
pub fn throughput(&self) -> f64
Throughput (jobs per time unit).
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
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