Skip to main content

QueryTrace

Struct QueryTrace 

Source
pub struct QueryTrace {
Show 15 fields pub query: String, pub driver: String, pub cache: String, pub unchanged: bool, pub parse_us: u64, pub compile_us: u64, pub memo_us: u64, pub scan_us: u64, pub materialize_us: u64, pub merge_us: u64, pub total_us: u64, pub entries_scanned: u64, pub excluded_skipped: u64, pub hits: u64, pub volumes: u32,
}
Expand description

Stage breakdown of one query, in microseconds.

Fields§

§query: String

The raw query text this trace measured.

§driver: String

Which execution strategy drove candidate generation (visualized in the perf panel): e.g. “full-scan”, “pool-scan”, “suffix”, “perm-walk”.

§cache: String

Per-volume query-cache outcome: “miss”, “refine” (all volumes narrowed the previous result) or “partial” (mixed).

§unchanged: bool

True when this query is identical (text + options) to the previous one on every volume and produced identical id lists — the UI keeps the displayed result instead of re-publishing (no repaint churn from idle USN traffic).

§parse_us: u64

Query parse time, in microseconds.

§compile_us: u64

Query compile time, in microseconds.

§memo_us: u64

Dir-path memo (only path queries; 0 when cached/warm).

§scan_us: u64

Candidate-generation scan time, in microseconds.

§materialize_us: u64

Result-row materialization time, in microseconds.

§merge_us: u64

Multi-volume k-way merge.

§total_us: u64

End-to-end query time, in microseconds.

§entries_scanned: u64

Number of index entries examined during scanning.

§excluded_skipped: u64

Number of entries skipped by exclusion rules.

§hits: u64

Number of matching entries returned.

§volumes: u32

Number of volumes queried.

Trait Implementations§

Source§

impl Clone for QueryTrace

Source§

fn clone(&self) -> QueryTrace

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 QueryTrace

Source§

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

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

impl Default for QueryTrace

Source§

fn default() -> QueryTrace

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

impl Serialize for QueryTrace

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