pub struct RealTimeMemoryProfiler { /* private fields */ }Expand description
Real-time memory profiler for graph operations
Implementations§
Source§impl RealTimeMemoryProfiler
impl RealTimeMemoryProfiler
Sourcepub fn sample_memory(&mut self, currentmemory: usize)
pub fn sample_memory(&mut self, currentmemory: usize)
Record a memory measurement
Sourcepub fn record_allocation(&self, size: usize)
pub fn record_allocation(&self, size: usize)
Record an allocation
Sourcepub fn record_deallocation(&self, size: usize)
pub fn record_deallocation(&self, size: usize)
Record a deallocation
Sourcepub fn generate_metrics(&self) -> MemoryMetrics
pub fn generate_metrics(&self) -> MemoryMetrics
Generate comprehensive memory metrics
Sourcepub fn analyze_memory_health(&self) -> Vec<String>
pub fn analyze_memory_health(&self) -> Vec<String>
Check for potential memory issues
Sourcepub fn export_timeline(&self) -> Vec<(f64, usize)>
pub fn export_timeline(&self) -> Vec<(f64, usize)>
Export memory timeline for visualization
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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