pub struct PerformanceHistory { /* private fields */ }Expand description
Performance history for adaptive execution decisions
Implementations§
Source§impl PerformanceHistory
impl PerformanceHistory
Sourcepub fn new() -> PerformanceHistory
pub fn new() -> PerformanceHistory
Create a new PerformanceHistory instance
Sourcepub fn record_parallel_time(&mut self, duration: Duration)
pub fn record_parallel_time(&mut self, duration: Duration)
Record performance of parallel strategy
Sourcepub fn record_async_time(&mut self, duration: Duration)
pub fn record_async_time(&mut self, duration: Duration)
Record performance of async strategy
Sourcepub fn recommend_strategy(
&self,
item_count: usize,
config: &HybridConfig,
) -> ExecutionStrategy
pub fn recommend_strategy( &self, item_count: usize, config: &HybridConfig, ) -> ExecutionStrategy
Recommend strategy based on history and item count
Trait Implementations§
Source§impl Debug for PerformanceHistory
impl Debug for PerformanceHistory
Source§impl Default for PerformanceHistory
impl Default for PerformanceHistory
Source§fn default() -> PerformanceHistory
fn default() -> PerformanceHistory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerformanceHistory
impl RefUnwindSafe for PerformanceHistory
impl Send for PerformanceHistory
impl Sync for PerformanceHistory
impl Unpin for PerformanceHistory
impl UnsafeUnpin for PerformanceHistory
impl UnwindSafe for PerformanceHistory
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