pub struct AdvancedMemoryAnalyzer;Expand description
Advanced memory analysis for graph algorithms
Implementations§
Source§impl AdvancedMemoryAnalyzer
impl AdvancedMemoryAnalyzer
Sourcepub fn analyze_operation_memory<F, R>(
operation_name: &str,
operation: F,
sample_interval: Duration,
) -> (R, MemoryMetrics)where
F: FnOnce() -> R,
pub fn analyze_operation_memory<F, R>(
operation_name: &str,
operation: F,
sample_interval: Duration,
) -> (R, MemoryMetrics)where
F: FnOnce() -> R,
Analyze memory allocation patterns for different graph operations
Sourcepub fn compare_implementations<F1, F2, R>(
impl1: F1,
impl2: F2,
impl1_name: &str,
impl2_name: &str,
) -> (MemoryMetrics, MemoryMetrics)
pub fn compare_implementations<F1, F2, R>( impl1: F1, impl2: F2, impl1_name: &str, impl2_name: &str, ) -> (MemoryMetrics, MemoryMetrics)
Compare memory usage between different algorithm implementations
Auto Trait Implementations§
impl Freeze for AdvancedMemoryAnalyzer
impl RefUnwindSafe for AdvancedMemoryAnalyzer
impl Send for AdvancedMemoryAnalyzer
impl Sync for AdvancedMemoryAnalyzer
impl Unpin for AdvancedMemoryAnalyzer
impl UnwindSafe for AdvancedMemoryAnalyzer
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