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: StringThe raw query text this trace measured.
driver: StringWhich execution strategy drove candidate generation (visualized in the perf panel): e.g. “full-scan”, “pool-scan”, “suffix”, “perm-walk”.
cache: StringPer-volume query-cache outcome: “miss”, “refine” (all volumes narrowed the previous result) or “partial” (mixed).
unchanged: boolTrue 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: u64Query parse time, in microseconds.
compile_us: u64Query compile time, in microseconds.
memo_us: u64Dir-path memo (only path queries; 0 when cached/warm).
scan_us: u64Candidate-generation scan time, in microseconds.
materialize_us: u64Result-row materialization time, in microseconds.
merge_us: u64Multi-volume k-way merge.
total_us: u64End-to-end query time, in microseconds.
entries_scanned: u64Number of index entries examined during scanning.
excluded_skipped: u64Number of entries skipped by exclusion rules.
hits: u64Number of matching entries returned.
volumes: u32Number of volumes queried.
Trait Implementations§
Source§impl Clone for QueryTrace
impl Clone for QueryTrace
Source§fn clone(&self) -> QueryTrace
fn clone(&self) -> QueryTrace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryTrace
impl Debug for QueryTrace
Source§impl Default for QueryTrace
impl Default for QueryTrace
Source§fn default() -> QueryTrace
fn default() -> QueryTrace
Auto Trait Implementations§
impl Freeze for QueryTrace
impl RefUnwindSafe for QueryTrace
impl Send for QueryTrace
impl Sync for QueryTrace
impl Unpin for QueryTrace
impl UnsafeUnpin for QueryTrace
impl UnwindSafe for QueryTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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