pub struct QueryStats {
pub trigrams_queried: u32,
pub posting_lists_decoded: u32,
pub candidate_files: u32,
pub files_verified: u32,
pub bytes_verified: u64,
pub total_matches: u32,
pub posting_cache_hits: u64,
pub posting_cache_misses: u64,
pub neg_cache_hits: u64,
pub neg_cache_misses: u64,
}Expand description
Performance counters collected during query execution.
Fields§
§trigrams_queried: u32Number of trigrams looked up in the trigram table.
posting_lists_decoded: u32Number of posting lists that were fully decoded from disk.
candidate_files: u32Number of candidate files after intersection and bloom filtering.
files_verified: u32Number of files whose content was verified against the regex.
bytes_verified: u64Total bytes of file content read during verification.
total_matches: u32Total number of matches produced.
posting_cache_hits: u64Posting list cache hits (decode avoided).
posting_cache_misses: u64Posting list cache misses (decode required).
neg_cache_hits: u64Negative cache hits (file verification skipped).
neg_cache_misses: u64Negative cache misses (file verification required).
Trait Implementations§
Source§impl Debug for QueryStats
impl Debug for QueryStats
Source§impl Default for QueryStats
impl Default for QueryStats
Source§fn default() -> QueryStats
fn default() -> QueryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryStats
impl RefUnwindSafe for QueryStats
impl Send for QueryStats
impl Sync for QueryStats
impl Unpin for QueryStats
impl UnsafeUnpin for QueryStats
impl UnwindSafe for QueryStats
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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 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>
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