Skip to main content

IndexStats

Struct IndexStats 

Source
pub struct IndexStats {
Show 21 fields pub volume: String, pub entries: u64, pub live_entries: u64, pub tombstones: u64, pub name_pool_bytes: u64, pub lower_pool_bytes: u64, pub offsets_bytes: u64, pub parent_bytes: u64, pub size_bytes: u64, pub mtime_bytes: u64, pub frn_bytes: u64, pub flag_bytes: u64, pub permutations_bytes: u64, pub frn_map_bytes: u64, pub dead_name_bytes: u64, pub pool_garbage_ratio: f64, pub derived_cache_bytes: u64, pub total_bytes: u64, pub bytes_per_entry: f64, pub content_generation: u64, pub structural_generation: u64,
}
Expand description

Per-column memory accounting for one volume index.

Fields§

§volume: String

The volume this index covers (e.g. “C:”).

§entries: u64

Total rows in the index (live + tombstones).

§live_entries: u64

Number of live (non-tombstoned) rows.

§tombstones: u64

Number of tombstoned (deleted) rows.

§name_pool_bytes: u64

Bytes held by the original-case name pool.

§lower_pool_bytes: u64

Bytes held by the case-folded (lowercase) name pool.

§offsets_bytes: u64

Bytes held by the name-pool offset table.

§parent_bytes: u64

Bytes held by the parent-pointer column.

§size_bytes: u64

Bytes held by the file-size column.

§mtime_bytes: u64

Bytes held by the modification-time column.

§frn_bytes: u64

Bytes held by the File Reference Number column.

§flag_bytes: u64

Bytes held by the per-entry flag column.

§permutations_bytes: u64

Bytes held by the sort permutations.

§frn_map_bytes: u64

Bytes held by the FRN-to-row lookup map.

§dead_name_bytes: u64

Abandoned name bytes across both pools (tombstoned rows, in-place dir renames: the folded copy always, the original copy when one existed) — the reclaimable garbage. Compaction-trigger input; a lower bound right after a snapshot restore.

§pool_garbage_ratio: f64

dead_name_bytes / (name_pool + lower_pool).

§derived_cache_bytes: u64

Generation-cached query accelerators (offset table, dir-path memo). Part of the bytes/entry gate — they live in the engine process.

§total_bytes: u64

Total resident bytes for this index (sum of all columns + caches).

§bytes_per_entry: f64

total_bytes / entries — the bytes/entry gate metric.

§content_generation: u64

Content generation counter (bumps on name/data changes).

§structural_generation: u64

Structural generation counter (bumps on add/remove/rename).

Implementations§

Source§

impl IndexStats

Source

pub fn add_derived_bytes(&mut self, bytes: u64)

Fold the derived-cache footprint in (the index module cannot compute it itself — the cached types belong to the query layer).

Trait Implementations§

Source§

impl Clone for IndexStats

Source§

fn clone(&self) -> IndexStats

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IndexStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IndexStats

Source§

fn default() -> IndexStats

Returns the “default value” for a type. Read more
Source§

impl Serialize for IndexStats

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more