pub struct RuntimePerformanceModeler { /* private fields */ }Expand description
Runtime performance modeling system
Implementations§
Source§impl RuntimePerformanceModeler
impl RuntimePerformanceModeler
Sourcepub fn new() -> BackendResult<Self>
pub fn new() -> BackendResult<Self>
Create a new runtime performance modeler
Sourcepub fn initialize_models(&self) -> BackendResult<()>
pub fn initialize_models(&self) -> BackendResult<()>
Initialize ML models for all backends
Sourcepub fn record_measurement(
&self,
measurement: PerformanceMeasurement,
) -> BackendResult<()>
pub fn record_measurement( &self, measurement: PerformanceMeasurement, ) -> BackendResult<()>
Record a new performance measurement
Sourcepub fn predict_performance(
&self,
backend_type: BackendType,
workload: &WorkloadCharacteristics,
parameters: &TuningParameters,
system_state: &SystemState,
environment: &EnvironmentalFactors,
) -> BackendResult<PerformancePrediction>
pub fn predict_performance( &self, backend_type: BackendType, workload: &WorkloadCharacteristics, parameters: &TuningParameters, system_state: &SystemState, environment: &EnvironmentalFactors, ) -> BackendResult<PerformancePrediction>
Predict performance for given inputs
Sourcepub fn get_performance_trends(
&self,
backend_type: BackendType,
) -> BackendResult<Vec<PerformanceTrend>>
pub fn get_performance_trends( &self, backend_type: BackendType, ) -> BackendResult<Vec<PerformanceTrend>>
Get performance trends for a backend
Sourcepub fn analyze_correlations(
&self,
backend_type: BackendType,
) -> BackendResult<Vec<CorrelationResult>>
pub fn analyze_correlations( &self, backend_type: BackendType, ) -> BackendResult<Vec<CorrelationResult>>
Analyze correlations between system factors and performance
Sourcepub fn get_recent_anomalies(
&self,
since: SystemTime,
) -> BackendResult<Vec<PerformanceAnomaly>>
pub fn get_recent_anomalies( &self, since: SystemTime, ) -> BackendResult<Vec<PerformanceAnomaly>>
Get recent anomalies
Sourcepub fn get_model_accuracy(
&self,
backend_type: BackendType,
) -> BackendResult<ModelAccuracy>
pub fn get_model_accuracy( &self, backend_type: BackendType, ) -> BackendResult<ModelAccuracy>
Get model accuracy metrics
Sourcepub fn update_model(
&self,
backend_type: BackendType,
) -> BackendResult<ModelTrainingResult>
pub fn update_model( &self, backend_type: BackendType, ) -> BackendResult<ModelTrainingResult>
Trigger manual model update
Sourcepub fn generate_performance_report(
&self,
backend_type: BackendType,
) -> BackendResult<PerformanceReport>
pub fn generate_performance_report( &self, backend_type: BackendType, ) -> BackendResult<PerformanceReport>
Get comprehensive performance report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimePerformanceModeler
impl !RefUnwindSafe for RuntimePerformanceModeler
impl Send for RuntimePerformanceModeler
impl Sync for RuntimePerformanceModeler
impl Unpin for RuntimePerformanceModeler
impl UnsafeUnpin for RuntimePerformanceModeler
impl !UnwindSafe for RuntimePerformanceModeler
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