pub struct WinRateAggregator { /* private fields */ }Expand description
Win-rate aggregator: per-segment running tallies, plus regression flag.
Implementations§
Source§impl WinRateAggregator
impl WinRateAggregator
pub fn new(cfg: &ShadowConfig) -> Arc<Self> ⓘ
pub fn record(&self, sample: &ShadowSample)
pub fn snapshot(&self) -> HashMap<String, SegmentStats>
pub fn regressed_segments(&self) -> Vec<String>
Auto Trait Implementations§
impl !Freeze for WinRateAggregator
impl !RefUnwindSafe for WinRateAggregator
impl Send for WinRateAggregator
impl Sync for WinRateAggregator
impl Unpin for WinRateAggregator
impl UnsafeUnpin for WinRateAggregator
impl UnwindSafe for WinRateAggregator
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