pub struct MonitorConfig {
pub max_measurements: usize,
pub detailed_timing: bool,
pub calculate_throughput: bool,
pub sampling_rate: f64,
}
Expand description
Configuration for performance monitoring
Fields§
§max_measurements: usize
Maximum measurements to keep per counter
detailed_timing: bool
Enable detailed timing (may have overhead)
calculate_throughput: bool
Enable throughput calculation
sampling_rate: f64
Sampling rate (1.0 = all measurements, 0.1 = 10% sampling)
Trait Implementations§
Source§impl Clone for MonitorConfig
impl Clone for MonitorConfig
Source§fn clone(&self) -> MonitorConfig
fn clone(&self) -> MonitorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MonitorConfig
impl Debug for MonitorConfig
Auto Trait Implementations§
impl Freeze for MonitorConfig
impl RefUnwindSafe for MonitorConfig
impl Send for MonitorConfig
impl Sync for MonitorConfig
impl Unpin for MonitorConfig
impl UnwindSafe for MonitorConfig
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