pub struct AdjacencyMemoryStats {
pub hot_entries: usize,
pub cold_entries: usize,
pub hot_bytes: usize,
pub cold_bytes: usize,
pub node_count: usize,
}Expand description
Memory statistics for the adjacency structure.
Fields§
§hot_entries: usizeNumber of entries in hot (uncompressed) storage.
cold_entries: usizeNumber of entries in cold (compressed) storage.
hot_bytes: usizeBytes used by hot storage.
cold_bytes: usizeBytes used by cold storage.
node_count: usizeNumber of nodes with adjacency lists.
Implementations§
Source§impl AdjacencyMemoryStats
impl AdjacencyMemoryStats
Sourcepub fn total_entries(&self) -> usize
pub fn total_entries(&self) -> usize
Returns the total number of entries.
Sourcepub fn total_bytes(&self) -> usize
pub fn total_bytes(&self) -> usize
Returns the total memory used in bytes.
Sourcepub fn cold_compression_ratio(&self) -> f64
pub fn cold_compression_ratio(&self) -> f64
Returns the compression ratio for cold storage.
Values > 1.0 indicate actual compression.
Sourcepub fn overall_compression_ratio(&self) -> f64
pub fn overall_compression_ratio(&self) -> f64
Returns the overall compression ratio.
Trait Implementations§
Source§impl Clone for AdjacencyMemoryStats
impl Clone for AdjacencyMemoryStats
Source§fn clone(&self) -> AdjacencyMemoryStats
fn clone(&self) -> AdjacencyMemoryStats
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 moreAuto Trait Implementations§
impl Freeze for AdjacencyMemoryStats
impl RefUnwindSafe for AdjacencyMemoryStats
impl Send for AdjacencyMemoryStats
impl Sync for AdjacencyMemoryStats
impl Unpin for AdjacencyMemoryStats
impl UnwindSafe for AdjacencyMemoryStats
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