pub struct PoolStats {
pub context_node_requests: usize,
pub context_node_hits: usize,
pub trie_node_requests: usize,
pub trie_node_hits: usize,
pub small_vec_requests: usize,
pub small_vec_hits: usize,
pub peak_context_nodes: usize,
pub peak_trie_nodes: usize,
pub peak_small_vecs: usize,
}Expand description
Statistics for memory pool usage
Fields§
§context_node_requests: usizeTotal ContextNode allocations requested
context_node_hits: usizeContextNode allocations served from pool
trie_node_requests: usizeTotal TrieNode allocations requested
trie_node_hits: usizeTrieNode allocations served from pool
small_vec_requests: usizeTotal SmallVec allocations requested
small_vec_hits: usizeSmallVec allocations served from pool
peak_context_nodes: usizePeak pool sizes
peak_trie_nodes: usize§peak_small_vecs: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnwindSafe for PoolStats
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> 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