pub struct MemoryProfilerConfig {
pub sampling_interval: Duration,
pub max_snapshots: usize,
pub track_allocations: bool,
pub allocation_threshold: usize,
}Expand description
Memory profiler configuration.
Fields§
§sampling_interval: DurationInterval between automatic snapshots.
max_snapshots: usizeMaximum number of historical snapshots to retain.
track_allocations: boolWhether to track individual allocations.
allocation_threshold: usizeMinimum allocation size to track individually (bytes).
Trait Implementations§
Source§impl Clone for MemoryProfilerConfig
impl Clone for MemoryProfilerConfig
Source§fn clone(&self) -> MemoryProfilerConfig
fn clone(&self) -> MemoryProfilerConfig
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 MemoryProfilerConfig
impl Debug for MemoryProfilerConfig
Auto Trait Implementations§
impl Freeze for MemoryProfilerConfig
impl RefUnwindSafe for MemoryProfilerConfig
impl Send for MemoryProfilerConfig
impl Sync for MemoryProfilerConfig
impl Unpin for MemoryProfilerConfig
impl UnsafeUnpin for MemoryProfilerConfig
impl UnwindSafe for MemoryProfilerConfig
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