pub struct StoreStats {
pub sessions: u64,
pub events: u64,
pub blobs_count: u64,
pub blobs_uncompressed_bytes: u64,
pub db_bytes: u64,
pub wal_bytes: u64,
pub shm_bytes: u64,
pub blobs_dir_bytes: u64,
pub largest_sessions: Vec<LargestSession>,
}Expand description
Whole-store inventory reported by Store::store_stats: counts and disk
footprint broken down by the DB file (plus its WAL/SHM sidecars) and the
blob directory, plus the largest sessions by event count. Used by
hh stats (Area 3).
Fields§
§sessions: u64Number of recorded sessions.
events: u64Total event rows across all sessions.
blobs_count: u64Number of distinct blobs in the blobs table.
blobs_uncompressed_bytes: u64Sum of blobs.size (uncompressed content size) — “how much did I
record”, distinct from the on-disk footprint in Self::blobs_dir_bytes.
db_bytes: u64Size of the hh.db file in bytes.
wal_bytes: u64Size of the hh.db-wal write-ahead log in bytes (0 if absent).
shm_bytes: u64Size of the hh.db-shm shared-memory file in bytes (0 if absent).
blobs_dir_bytes: u64Total on-disk size of the compressed blob files (sum of file sizes).
largest_sessions: Vec<LargestSession>The largest sessions by event count, descending (up to the count
requested from Store::store_stats).
Trait Implementations§
Source§impl Clone for StoreStats
impl Clone for StoreStats
Source§fn clone(&self) -> StoreStats
fn clone(&self) -> StoreStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoreStats
impl Debug for StoreStats
impl Eq for StoreStats
Source§impl PartialEq for StoreStats
impl PartialEq for StoreStats
impl StructuralPartialEq for StoreStats
Auto Trait Implementations§
impl Freeze for StoreStats
impl RefUnwindSafe for StoreStats
impl Send for StoreStats
impl Sync for StoreStats
impl Unpin for StoreStats
impl UnsafeUnpin for StoreStats
impl UnwindSafe for StoreStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.