pub struct JobEstimator { /* private fields */ }Expand description
Job estimator for pre-execution time prediction
Implementations§
Source§impl JobEstimator
impl JobEstimator
pub fn new() -> Self
Sourcepub fn estimate_job_duration(&self, params: &JobEstimateParams) -> JobEstimate
pub fn estimate_job_duration(&self, params: &JobEstimateParams) -> JobEstimate
Estimate job duration before execution
Sourcepub fn record_performance(
&mut self,
target: ComputeTarget,
bytes_processed: u64,
duration: Duration,
)
pub fn record_performance( &mut self, target: ComputeTarget, bytes_processed: u64, duration: Duration, )
Update velocity metrics after job completion
Sourcepub fn set_power_throttle_factor(&mut self, factor: f64)
pub fn set_power_throttle_factor(&mut self, factor: f64)
Set power throttling factor (called by power daemon)
Sourcepub fn get_power_throttle_factor(&self) -> f64
pub fn get_power_throttle_factor(&self) -> f64
Get current power throttling factor
Sourcepub fn get_velocity(&self, target: ComputeTarget) -> f64
pub fn get_velocity(&self, target: ComputeTarget) -> f64
Get velocity for a specific target
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobEstimator
impl RefUnwindSafe for JobEstimator
impl Send for JobEstimator
impl Sync for JobEstimator
impl Unpin for JobEstimator
impl UnsafeUnpin for JobEstimator
impl UnwindSafe for JobEstimator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.