pub struct Stats {
pub dist: Vec<DistStat>,
pub key_len: KeyLenStat,
pub count: CountStat,
pub bytes: BytesStat,
}Expand description
Contains various metrics describing the tree: its nodes, keys and values. Mostly used for tuning and debugging purpose.
dist[n].matchesnumber of values reached by traversing nmiddlelinks (the number of keys of length n)dist[n].sidesnumber of values reached by traversing nleftormiddlelinks (those links may indicate that the tree is not well balanced)dist[n].depthnumber of values whose total depth (middle,leftandrightlinks) is nkey_len.minlength of the shortest key inserted in the treekey_len.maxlength of the longest key inserted in the treecount.nodestotal number of nodes in the treecount.valuesnumber of nodes which store a value (same as len)bytes.nodebyte size of a node (including the fixed size of a value, but excluding heap allocated memory of this value)bytes.totaltotal number of bytes allocated for nodes (count.nodes*bytes.node)
Fields§
§dist: Vec<DistStat>§key_len: KeyLenStat§count: CountStat§bytes: BytesStatTrait Implementations§
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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