pub struct RuleTiming {
pub query: Duration,
pub handler: Duration,
pub matches: u64,
}Expand description
Where a run spent its time, per rule.
The split is the point. A rule that is slow in query has a query matching more than it
needs and wants narrowing; a rule that is slow in handler has code to look at. Reporting
one total would leave an author guessing which, and the two have nothing in common as
fixes.
Fields§
§query: DurationTime matching this rule’s query, in Rust.
handler: DurationTime inside its handler, in the sandbox.
matches: u64How many matches crossed the boundary.
The number the query gate exists to keep small — §7.2 — so it belongs beside the times rather than being inferred from them.
Implementations§
Trait Implementations§
Source§impl Clone for RuleTiming
impl Clone for RuleTiming
Source§fn clone(&self) -> RuleTiming
fn clone(&self) -> RuleTiming
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuleTiming
Source§impl Debug for RuleTiming
impl Debug for RuleTiming
Source§impl Default for RuleTiming
impl Default for RuleTiming
Source§fn default() -> RuleTiming
fn default() -> RuleTiming
Returns the “default value” for a type. Read more
impl Eq for RuleTiming
Source§impl PartialEq for RuleTiming
impl PartialEq for RuleTiming
impl StructuralPartialEq for RuleTiming
Auto Trait Implementations§
impl Freeze for RuleTiming
impl RefUnwindSafe for RuleTiming
impl Send for RuleTiming
impl Sync for RuleTiming
impl Unpin for RuleTiming
impl UnsafeUnpin for RuleTiming
impl UnwindSafe for RuleTiming
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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