pub struct RealTimeMemoryProfiler { /* private fields */ }Expand description
Real-time memory profiler for monitoring memory usage during algorithm execution
Implementations§
Source§impl RealTimeMemoryProfiler
impl RealTimeMemoryProfiler
Sourcepub fn start_monitoring(&mut self, sampleinterval: Duration)
pub fn start_monitoring(&mut self, sampleinterval: Duration)
Start monitoring memory usage
Sourcepub fn stop_monitoring(&mut self) -> MemoryMetrics
pub fn stop_monitoring(&mut self) -> MemoryMetrics
Stop monitoring and return collected metrics
Sourcepub fn get_current_metrics(&self) -> MemoryMetrics
pub fn get_current_metrics(&self) -> MemoryMetrics
Get current memory metrics without stopping monitoring
Sourcepub fn detect_memory_leaks(&self, threshold_bytes_persec: f64) -> bool
pub fn detect_memory_leaks(&self, threshold_bytes_persec: f64) -> bool
Check for memory leaks based on growth rate
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate memory usage report
Trait Implementations§
Source§impl Debug for RealTimeMemoryProfiler
impl Debug for RealTimeMemoryProfiler
Auto Trait Implementations§
impl Freeze for RealTimeMemoryProfiler
impl !RefUnwindSafe for RealTimeMemoryProfiler
impl Send for RealTimeMemoryProfiler
impl Sync for RealTimeMemoryProfiler
impl Unpin for RealTimeMemoryProfiler
impl !UnwindSafe for RealTimeMemoryProfiler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more