pub struct MemoryProfiler;Expand description
Memory profiler for graph structures
Implementations§
Source§impl MemoryProfiler
impl MemoryProfiler
Sourcepub fn profile_graph<N, E, Ix>(graph: &Graph<N, E, Ix>) -> MemoryStats
pub fn profile_graph<N, E, Ix>(graph: &Graph<N, E, Ix>) -> MemoryStats
Calculate memory statistics for an undirected graph
Sourcepub fn profile_digraph<N, E, Ix>(graph: &DiGraph<N, E, Ix>) -> MemoryStats
pub fn profile_digraph<N, E, Ix>(graph: &DiGraph<N, E, Ix>) -> MemoryStats
Calculate memory statistics for a directed graph
Sourcepub fn estimate_memory(nodes: usize, edges: usize, directed: bool) -> usize
pub fn estimate_memory(nodes: usize, edges: usize, directed: bool) -> usize
Estimate memory usage for a graph of given size
Sourcepub fn analyze_fragmentation<N, E, Ix>(
graph: &Graph<N, E, Ix>,
) -> FragmentationReport
pub fn analyze_fragmentation<N, E, Ix>( graph: &Graph<N, E, Ix>, ) -> FragmentationReport
Analyze memory fragmentation in the graph
Auto Trait Implementations§
impl Freeze for MemoryProfiler
impl RefUnwindSafe for MemoryProfiler
impl Send for MemoryProfiler
impl Sync for MemoryProfiler
impl Unpin for MemoryProfiler
impl UnwindSafe for MemoryProfiler
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