pub struct QueryStatistics {
pub total_execution_time_us: u128,
pub io_time_us: u128,
pub cpu_time_us: u128,
pub query_pq_preprocess_time_us: u128,
pub total_io_operations: u32,
pub comparisons_saved: u32,
pub total_comparisons: u32,
pub total_vertices_loaded: u32,
pub search_hops: u32,
}Expand description
A struct to gather statistics for a given disk query execution.
Fields§
§total_execution_time_us: u128Total time to process the query in microseconds.
io_time_us: u128Total time spent in IO operations in microseconds.
cpu_time_us: u128Total time spent in CPU operations in microseconds.
query_pq_preprocess_time_us: u128Time spent in query preprocessing for the PQ in microseconds.
total_io_operations: u32Total number of IO operations issued.
comparisons_saved: u32Number of saved comparisons (optimization metric).
total_comparisons: u32Total number of comparisons performed.
total_vertices_loaded: u32Total number of vertices loaded.
search_hops: u32Number of hops performed during search.
Trait Implementations§
Source§impl Clone for QueryStatistics
impl Clone for QueryStatistics
Source§fn clone(&self) -> QueryStatistics
fn clone(&self) -> QueryStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryStatistics
impl Debug for QueryStatistics
Source§impl Default for QueryStatistics
impl Default for QueryStatistics
Source§fn default() -> QueryStatistics
fn default() -> QueryStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryStatistics
impl RefUnwindSafe for QueryStatistics
impl Send for QueryStatistics
impl Sync for QueryStatistics
impl Unpin for QueryStatistics
impl UnwindSafe for QueryStatistics
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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