pub struct SamplingInfo {
pub sampled: bool,
pub final_sample_rate: f64,
pub min_sample_rate: f64,
pub reservoir_size: usize,
pub results_collected: usize,
}Expand description
Describes the VU-threshold + reservoir sampling state at end of run.
Consumers should display a disclaimer when sampled == true, as percentile
values are based on a random sample of the full request population.
Fields§
§sampled: booltrue if min_sample_rate < 1.0 at any point during the run.
final_sample_rate: f64VU-threshold sample rate at end of run (1.0 = no threshold active).
min_sample_rate: f64Lowest sample rate observed; drives the “percentiles are approximate” warning.
reservoir_size: usizeConfigured reservoir cap (--result-buffer).
results_collected: usizeActual results in the reservoir buffer (≤ reservoir_size).
Trait Implementations§
Source§impl Debug for SamplingInfo
impl Debug for SamplingInfo
Auto Trait Implementations§
impl Freeze for SamplingInfo
impl RefUnwindSafe for SamplingInfo
impl Send for SamplingInfo
impl Sync for SamplingInfo
impl Unpin for SamplingInfo
impl UnsafeUnpin for SamplingInfo
impl UnwindSafe for SamplingInfo
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