pub struct JitQueryStats {
pub compilations: u64,
pub jit_executions: u64,
pub native_executions: u64,
pub compilation_time_ns: u64,
pub jit_execution_time_ns: u64,
pub native_execution_time_ns: u64,
}Expand description
Statistics for JIT compilation
Fields§
§compilations: u64Number of expression compilations
jit_executions: u64Number of JIT executions
native_executions: u64Number of native executions
compilation_time_ns: u64Total compilation time in nanoseconds
jit_execution_time_ns: u64Total JIT execution time in nanoseconds
native_execution_time_ns: u64Total native execution time in nanoseconds
Implementations§
Source§impl JitQueryStats
impl JitQueryStats
pub fn record_compilation(&mut self, duration_ns: u64)
pub fn record_jit_execution(&mut self, duration_ns: u64)
pub fn record_native_execution(&mut self, duration_ns: u64)
pub fn average_compilation_time_ns(&self) -> f64
pub fn jit_speedup_ratio(&self) -> f64
Trait Implementations§
Source§impl Clone for JitQueryStats
impl Clone for JitQueryStats
Source§fn clone(&self) -> JitQueryStats
fn clone(&self) -> JitQueryStats
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 JitQueryStats
impl Debug for JitQueryStats
Source§impl Default for JitQueryStats
impl Default for JitQueryStats
Source§fn default() -> JitQueryStats
fn default() -> JitQueryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JitQueryStats
impl RefUnwindSafe for JitQueryStats
impl Send for JitQueryStats
impl Sync for JitQueryStats
impl Unpin for JitQueryStats
impl UnsafeUnpin for JitQueryStats
impl UnwindSafe for JitQueryStats
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> 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