pub struct MetricsAggregator { /* private fields */ }Expand description
Aggregator for compilation metrics with statistics.
Implementations§
Source§impl MetricsAggregator
impl MetricsAggregator
Sourcepub fn record(&mut self, metrics: CompilationMetrics)
pub fn record(&mut self, metrics: CompilationMetrics)
Record a new compilation’s metrics.
Sourcepub fn average_speedup(&self) -> Option<f64>
pub fn average_speedup(&self) -> Option<f64>
Get the average speedup across all recorded compilations.
Sourcepub fn p50_total_time(&self) -> Option<Duration>
pub fn p50_total_time(&self) -> Option<Duration>
Get the p50 (median) total compilation time.
Sourcepub fn p95_total_time(&self) -> Option<Duration>
pub fn p95_total_time(&self) -> Option<Duration>
Get the p95 total compilation time.
Sourcepub fn p99_total_time(&self) -> Option<Duration>
pub fn p99_total_time(&self) -> Option<Duration>
Get the p99 total compilation time.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get the success rate as a percentage.
Sourcepub fn metrics(&self) -> &VecDeque<CompilationMetrics>
pub fn metrics(&self) -> &VecDeque<CompilationMetrics>
Get all recorded metrics.
Trait Implementations§
Source§impl Debug for MetricsAggregator
impl Debug for MetricsAggregator
Auto Trait Implementations§
impl Freeze for MetricsAggregator
impl RefUnwindSafe for MetricsAggregator
impl Send for MetricsAggregator
impl Sync for MetricsAggregator
impl Unpin for MetricsAggregator
impl UnsafeUnpin for MetricsAggregator
impl UnwindSafe for MetricsAggregator
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