pub struct QueryDebugger {
pub enable_tracing: bool,
pub enable_profiling: bool,
pub enable_sparql_preview: bool,
pub complexity_threshold: u32,
}Expand description
Query debugger for profiling and analysis
Fields§
§enable_tracing: boolEnable tracing
enable_profiling: boolEnable profiling
enable_sparql_preview: boolEnable SPARQL preview
complexity_threshold: u32Complexity threshold
Implementations§
Source§impl QueryDebugger
impl QueryDebugger
pub fn new() -> Self
pub fn with_tracing(self, enabled: bool) -> Self
pub fn with_profiling(self, enabled: bool) -> Self
pub fn with_sparql_preview(self, enabled: bool) -> Self
pub fn with_complexity_threshold(self, threshold: u32) -> Self
Sourcepub fn start_trace(&self, query: String) -> ExecutionTrace
pub fn start_trace(&self, query: String) -> ExecutionTrace
Start a new execution trace
Sourcepub fn analyze_complexity(&self, _query: &str) -> ComplexityMetrics
pub fn analyze_complexity(&self, _query: &str) -> ComplexityMetrics
Analyze query complexity
Sourcepub fn explain_query(&self, query: String) -> QueryExplanation
pub fn explain_query(&self, query: String) -> QueryExplanation
Generate query explanation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryDebugger
impl RefUnwindSafe for QueryDebugger
impl Send for QueryDebugger
impl Sync for QueryDebugger
impl Unpin for QueryDebugger
impl UnsafeUnpin for QueryDebugger
impl UnwindSafe for QueryDebugger
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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