pub struct MemoryStats {Show 26 fields
pub peak_allocated: u64,
pub total_allocated: u64,
pub startup_allocated: u64,
pub replication_backlog: u64,
pub clients_slaves: u64,
pub clients_normal: u64,
pub aof_buffer: u64,
pub lua_caches: u64,
pub overhead_total: u64,
pub keys_count: u64,
pub keys_bytes_per_key: u64,
pub dataset_bytes: u64,
pub dataset_percentage: f64,
pub peak_percentage: f64,
pub fragmentation: f64,
pub fragmentation_bytes: u64,
pub rss_overhead_ratio: f64,
pub rss_overhead_bytes: u64,
pub allocator_allocated: u64,
pub allocator_active: u64,
pub allocator_resident: u64,
pub allocator_fragmentation_ratio: f64,
pub allocator_fragmentation_bytes: u64,
pub allocator_rss_ratio: f64,
pub allocator_rss_bytes: u64,
pub db: HashMap<u16, DatabaseMemoryStats>,
}Available on crate feature
i-memory only.Expand description
The parsed result of the MEMORY STATS command.
Fields§
§peak_allocated: u64§total_allocated: u64§startup_allocated: u64§replication_backlog: u64§clients_slaves: u64§clients_normal: u64§aof_buffer: u64§lua_caches: u64§overhead_total: u64§keys_count: u64§keys_bytes_per_key: u64§dataset_bytes: u64§dataset_percentage: f64§peak_percentage: f64§fragmentation: f64§fragmentation_bytes: u64§rss_overhead_ratio: f64§rss_overhead_bytes: u64§allocator_allocated: u64§allocator_active: u64§allocator_resident: u64§allocator_fragmentation_ratio: f64§allocator_fragmentation_bytes: u64§allocator_rss_ratio: f64§allocator_rss_bytes: u64§db: HashMap<u16, DatabaseMemoryStats>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 · 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§impl FromValue for MemoryStats
impl FromValue for MemoryStats
Source§impl PartialEq for MemoryStats
impl PartialEq for MemoryStats
Source§impl TryFrom<Value> for MemoryStats
impl TryFrom<Value> for MemoryStats
impl Eq for MemoryStats
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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