pub struct MemoryProfilingConfig {
pub enabled: bool,
pub track_allocations: bool,
pub track_leaks: bool,
pub max_allocations: usize,
pub snapshot_interval_secs: u64,
pub heap_profiling: bool,
}
Expand description
Memory profiling configuration
Fields§
§enabled: bool
Enable memory profiling
track_allocations: bool
Allocation tracking enabled
track_leaks: bool
Track memory leaks
max_allocations: usize
Maximum allocations to track
snapshot_interval_secs: u64
Memory snapshot interval in seconds
heap_profiling: bool
Enable heap profiling
Trait Implementations§
Source§impl Clone for MemoryProfilingConfig
impl Clone for MemoryProfilingConfig
Source§fn clone(&self) -> MemoryProfilingConfig
fn clone(&self) -> MemoryProfilingConfig
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 MemoryProfilingConfig
impl Debug for MemoryProfilingConfig
Source§impl<'de> Deserialize<'de> for MemoryProfilingConfig
impl<'de> Deserialize<'de> for MemoryProfilingConfig
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 MemoryProfilingConfig
impl RefUnwindSafe for MemoryProfilingConfig
impl Send for MemoryProfilingConfig
impl Sync for MemoryProfilingConfig
impl Unpin for MemoryProfilingConfig
impl UnwindSafe for MemoryProfilingConfig
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