pub struct Predictor { /* private fields */ }Expand description
Predicts a job’s peak from the runs it learned.
Implementations§
Source§impl Predictor
impl Predictor
Sourcepub fn new(rules: &Sizing) -> Predictor
pub fn new(rules: &Sizing) -> Predictor
A predictor that knows no run yet, with [sizing]’s margin and minimum runs.
Sourcepub fn learn(&mut self, run: &Ran, profile: &str, cap: u64, at: u64)
pub fn learn(&mut self, run: &Ran, profile: &str, cap: u64, at: u64)
Learns a run of profile that finished at at (ms), having run under cap: its peak, and how it ended.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Predictor
impl RefUnwindSafe for Predictor
impl Send for Predictor
impl Sync for Predictor
impl Unpin for Predictor
impl UnsafeUnpin for Predictor
impl UnwindSafe for Predictor
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