Skip to main content

ScanStats

Struct ScanStats 

Source
pub struct ScanStats {
Show 25 fields pub volume: String, pub elapsed_total_ms: u64, pub elapsed_mft_load_ms: u64, pub elapsed_parse_ms: u64, pub elapsed_deferred_ms: u64, pub deferred_names: u64, pub elapsed_build_ms: u64, pub elapsed_sort_ms: u64, pub pipeline_fallbacks: u64, pub files: u64, pub dirs: u64, pub skipped_no_name: u64, pub peak_working_set_bytes: u64, pub mft_bytes: u64, pub extension_records: u64, pub corrupt_records: u64, pub deferred_unresolved: u64, pub ext_name_cache_skipped: u64, pub deferred_name_read_failures: u64, pub walk_dirs: u64, pub walk_files: u64, pub elapsed_walk_ms: u64, pub walk_read_errors: u64, pub walk_depth_truncated: u64, pub walk_excluded_pruned: u64,
}
Expand description

Statistics from a full index build.

Fields§

§volume: String

Drive letter spec that was scanned (e.g. C:).

§elapsed_total_ms: u64

Wall-clock time for the whole scan + build (ms).

§elapsed_mft_load_ms: u64

Accumulated device-read time. Overlaps with parsing on the pipelined path, so read + parse + build + sort may exceed total.

§elapsed_parse_ms: u64

Accumulated record-parse time (fixup + attribute walk + WTF-8).

§elapsed_deferred_ms: u64

Deferred $ATTRIBUTE_LIST name resolution.

§deferred_names: u64

Records whose name needed the deferred pass at all.

§elapsed_build_ms: u64

Builder finish: parent resolution + EXCLUDED propagation.

§elapsed_sort_ms: u64

Builder finish: the three permutation sorts.

§pipeline_fallbacks: u64

1 when the read-ahead I/O thread could not start and the scan degraded to inline sequential reads.

§files: u64

Files indexed (count).

§dirs: u64

Directories indexed (count).

§skipped_no_name: u64

Records dropped because no usable name could be resolved (count).

§peak_working_set_bytes: u64

Peak working-set RAM of the scanning process (bytes).

§mft_bytes: u64

Raw $MFT size — the bytes the initial scan reads.

§extension_records: u64

Extension records (base_reference != 0) — parts of other files, correctly not indexed standalone.

§corrupt_records: u64

Records failing signature/fixup validation.

§deferred_unresolved: u64

Deferred $ATTRIBUTE_LIST records whose name never resolved.

§ext_name_cache_skipped: u64

Name-bearing extension records past the in-RAM cache cap (those targets fall back to disk reads in the deferred pass).

§deferred_name_read_failures: u64

Deferred-pass targeted disk reads that failed — each one is a name that stays unresolved until the next rescan.

§walk_dirs: u64

Scope-mode (folder-walk, ADR-0024) only: directories enumerated.

§walk_files: u64

Scope-mode only: files enumerated.

§elapsed_walk_ms: u64

Scope-mode only: wall-clock of the enumeration phase (ms).

§walk_read_errors: u64

Scope-mode only: roots/dirs/entries skipped because they could not be read (permission, vanished). The worker maps this to a counter + warn.

§walk_depth_truncated: u64

Scope-mode only: subtrees not descended because they hit MAX_DEPTH.

§walk_excluded_pruned: u64

Scope-mode only: directories (and their subtrees) skipped because they matched a user exclude (ADR-0025). Normal behaviour, not a degradation — surfaced in the scan-complete log, never a degrade counter.

Trait Implementations§

Source§

impl Debug for ScanStats

Source§

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

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

impl Default for ScanStats

Source§

fn default() -> ScanStats

Returns the “default value” for a type. 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> 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, 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