pub struct RunReport {
pub iterations: Vec<Arc<IterationReport>>,
pub updated: bool,
pub search_and_apply_time_per_rule: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>,
pub num_matches_per_rule: HashMap<Arc<str>, usize, BuildHasherDefault<FxHasher>>,
pub search_and_apply_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>,
pub merge_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>,
pub rebuild_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>,
}Expand description
Running a schedule produces a report of the results.
This includes rough timing information and whether
the database was updated.
Calling union on two run reports adds the timing
information together.
Fields§
§iterations: Vec<Arc<IterationReport>>§updated: boolIf any changes were made to the database.
search_and_apply_time_per_rule: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>§num_matches_per_rule: HashMap<Arc<str>, usize, BuildHasherDefault<FxHasher>>§search_and_apply_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>§merge_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>§rebuild_time_per_ruleset: HashMap<Arc<str>, Duration, BuildHasherDefault<FxHasher>>Implementations§
Source§impl RunReport
impl RunReport
pub fn singleton(ruleset: &str, iteration: IterationReport) -> Self
pub fn add_iteration(&mut self, ruleset: &str, iteration: IterationReport)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunReport
impl RefUnwindSafe for RunReport
impl Send for RunReport
impl Sync for RunReport
impl Unpin for RunReport
impl UnwindSafe for RunReport
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