pub struct QueryProfilingSession { /* private fields */ }Expand description
Active profiling session for a single query
Implementations§
Source§impl QueryProfilingSession
impl QueryProfilingSession
Sourcepub fn start_phase(&mut self, phase: &str)
pub fn start_phase(&mut self, phase: &str)
Mark the start of a phase (parsing, planning, execution)
Sourcepub fn record_pattern(&mut self, pattern: String)
pub fn record_pattern(&mut self, pattern: String)
Record a pattern match
Sourcepub fn record_index_access(&mut self, index_name: String)
pub fn record_index_access(&mut self, index_name: String)
Record an index access
Sourcepub fn record_join(&mut self)
pub fn record_join(&mut self)
Record a join operation
Sourcepub fn record_triples_matched(&mut self, count: u64)
pub fn record_triples_matched(&mut self, count: u64)
Record triples matched
Sourcepub fn record_results(&mut self, count: u64)
pub fn record_results(&mut self, count: u64)
Record results produced
Sourcepub fn record_cache_access(&mut self, hit: bool)
pub fn record_cache_access(&mut self, hit: bool)
Record cache hit/miss
Sourcepub fn set_plan_hash(&mut self, hash: u64)
pub fn set_plan_hash(&mut self, hash: u64)
Set plan hash for deduplication
Sourcepub fn finish(self) -> QueryStatistics
pub fn finish(self) -> QueryStatistics
Finish profiling and return statistics
Auto Trait Implementations§
impl Freeze for QueryProfilingSession
impl RefUnwindSafe for QueryProfilingSession
impl Send for QueryProfilingSession
impl Sync for QueryProfilingSession
impl Unpin for QueryProfilingSession
impl UnsafeUnpin for QueryProfilingSession
impl UnwindSafe for QueryProfilingSession
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