pub struct MemoryStats {
pub block_cache_hits: u64,
pub block_cache_misses: u64,
pub row_cache_hits: u64,
pub row_cache_misses: u64,
pub total_memory_used: usize,
pub buffer_allocations: u64,
pub buffer_deallocations: u64,
}Expand description
Memory statistics
Fields§
§block_cache_hits: u64Block cache hits
block_cache_misses: u64Block cache misses
row_cache_hits: u64Row cache hits
row_cache_misses: u64Row cache misses
total_memory_used: usizeTotal memory used
buffer_allocations: u64Buffer pool allocations
buffer_deallocations: u64Buffer pool deallocations
Implementations§
Source§impl MemoryStats
impl MemoryStats
Sourcepub fn block_cache_hit_rate(&self) -> f64
pub fn block_cache_hit_rate(&self) -> f64
Calculate block cache hit rate
Sourcepub fn row_cache_hit_rate(&self) -> f64
pub fn row_cache_hit_rate(&self) -> f64
Calculate row cache hit rate
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin for MemoryStats
impl UnwindSafe for MemoryStats
Blanket Implementations§
impl<T> Allocation for T
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