pub struct StoreStats {
pub n_sequences: usize,
pub n_sequences_in_memory: usize,
pub n_collections: usize,
pub n_collections_in_memory: usize,
pub storage_mode: String,
pub logical_sequence_bytes: u64,
pub packed_dead_bytes: Option<u64>,
}Expand description
Statistics for a RefgetStore.
These are a snapshot of the store’s CURRENT RAM residency, not a record of
what a given import run did. For per-run ingest counts, use ImportReport
returned by add_sequence_collections_from_fastas.
Fields§
§n_sequences: usizeTotal number of sequences (loaded or not)
n_sequences_in_memory: usizeNumber of sequences whose bytes are currently held in RAM (loaded).
Structurally always 0 for a disk-backed store: importing drops each
sequence’s bytes after handing them off to be written (see
add_sequence_record_deferred_write). Only an on-demand fetch loads
them again.
n_collections: usizeTotal number of collections (loaded or not)
n_collections_in_memory: usizeNumber of collections whose member list is currently held in RAM
(loaded). Collections finalized by this process are loaded; collections
read from collections.rgci are not. This is a
residency gauge, NOT a count of collections added by this run — it
resets on process start and also counts collections merely touched by
a read.
storage_mode: StringStorage mode (Raw or Encoded)
logical_sequence_bytes: u64Logical size in bytes of all sequence payloads (length x storage-mode
encoding). Excludes index/sidecar/manifest overhead. For the exact full
on-disk footprint use ReadonlyRefgetStore::actual_disk_usage().
packed_dead_bytes: Option<u64>Dead (unreferenced) bytes inside pack files for a PACKED store:
sum(pack sizes) - sum(live sidecar lengths). None for a standalone
store, where per-sequence .seq files are unlinked eagerly.