pub struct ProfilerConfig {
pub memory_enabled: bool,
pub leak_detection_enabled: bool,
pub sampling_interval: Duration,
pub max_snapshots: usize,
pub allocation_threshold: usize,
pub capture_stack_traces: bool,
pub max_stack_depth: usize,
}Expand description
Profiler configuration.
Fields§
§memory_enabled: boolEnable memory profiling.
leak_detection_enabled: boolEnable leak detection.
sampling_interval: DurationSampling interval for periodic snapshots.
max_snapshots: usizeMaximum number of snapshots to retain.
allocation_threshold: usizeAllocation size threshold for tracking (bytes). Allocations smaller than this are not individually tracked.
capture_stack_traces: boolEnable stack trace capture for allocations (expensive).
max_stack_depth: usizeMaximum stack trace depth.
Trait Implementations§
Source§impl Clone for ProfilerConfig
impl Clone for ProfilerConfig
Source§fn clone(&self) -> ProfilerConfig
fn clone(&self) -> ProfilerConfig
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 ProfilerConfig
impl Debug for ProfilerConfig
Source§impl Default for ProfilerConfig
impl Default for ProfilerConfig
Source§impl<'de> Deserialize<'de> for ProfilerConfig
impl<'de> Deserialize<'de> for ProfilerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProfilerConfig
impl RefUnwindSafe for ProfilerConfig
impl Send for ProfilerConfig
impl Sync for ProfilerConfig
impl Unpin for ProfilerConfig
impl UnsafeUnpin for ProfilerConfig
impl UnwindSafe for ProfilerConfig
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