pub struct ProfileGuidedOptimizer { /* private fields */ }Expand description
Profile-guided optimization engine
Implementations§
Source§impl ProfileGuidedOptimizer
impl ProfileGuidedOptimizer
Sourcepub fn new(config: OptimizerConfig) -> SklResult<Self>
pub fn new(config: OptimizerConfig) -> SklResult<Self>
Create a new profile-guided optimizer
Sourcepub fn add_profile(&self, profile: PerformanceProfile) -> SklResult<()>
pub fn add_profile(&self, profile: PerformanceProfile) -> SklResult<()>
Add a performance profile
Sourcepub fn get_strategy(
&self,
operation_id: &str,
characteristics: &DataCharacteristics,
) -> SklResult<OptimizationStrategy>
pub fn get_strategy( &self, operation_id: &str, characteristics: &DataCharacteristics, ) -> SklResult<OptimizationStrategy>
Get optimization strategy for an operation
Sourcepub fn predict_performance(
&self,
operation_id: &str,
characteristics: &DataCharacteristics,
) -> SklResult<ExecutionMetrics>
pub fn predict_performance( &self, operation_id: &str, characteristics: &DataCharacteristics, ) -> SklResult<ExecutionMetrics>
Predict performance for given characteristics
Sourcepub fn get_optimization_stats(&self) -> OptimizationStats
pub fn get_optimization_stats(&self) -> OptimizationStats
Get optimization statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProfileGuidedOptimizer
impl RefUnwindSafe for ProfileGuidedOptimizer
impl Send for ProfileGuidedOptimizer
impl Sync for ProfileGuidedOptimizer
impl Unpin for ProfileGuidedOptimizer
impl UnwindSafe for ProfileGuidedOptimizer
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> 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