pub struct PerformanceMonitor { /* private fields */ }Expand description
Performance monitor for tracking results over time
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
Sourcepub fn set_thresholds(&mut self, thresholds: PerformanceThresholds)
pub fn set_thresholds(&mut self, thresholds: PerformanceThresholds)
Set custom performance thresholds
Sourcepub fn record_results(
&mut self,
results: &[BenchmarkResult],
git_commit: Option<String>,
) -> Result<(), PerformanceError>
pub fn record_results( &mut self, results: &[BenchmarkResult], git_commit: Option<String>, ) -> Result<(), PerformanceError>
Record new performance results
Sourcepub fn analyze_trends(
&self,
operation: &str,
days_back: u64,
) -> PerformanceTrend
pub fn analyze_trends( &self, operation: &str, days_back: u64, ) -> PerformanceTrend
Analyze performance trends
Sourcepub fn check_alerts(
&self,
current_results: &[BenchmarkResult],
) -> Vec<PerformanceAlert>
pub fn check_alerts( &self, current_results: &[BenchmarkResult], ) -> Vec<PerformanceAlert>
Check for performance alerts
Sourcepub fn generate_performance_report(&self, days_back: u64) -> PerformanceReport
pub fn generate_performance_report(&self, days_back: u64) -> PerformanceReport
Generate performance report
Auto Trait Implementations§
impl Freeze for PerformanceMonitor
impl RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl UnsafeUnpin for PerformanceMonitor
impl UnwindSafe for PerformanceMonitor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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