pub struct EngineStats {Show 19 fields
pub files: usize,
pub tokens: usize,
pub raw_fingerprints: usize,
pub raw_distinct: usize,
pub stop_fingerprints: usize,
pub stop_postings: usize,
pub fragments: usize,
pub control_headers_over_limit: usize,
pub fragment_classes: usize,
pub class_cap_dropped: usize,
pub seed_candidates: usize,
pub raw_pairs_available: usize,
pub fragment_candidates: usize,
pub fragment_pairs_available: usize,
pub pairs: usize,
pub hash_collisions: usize,
pub pair_budget_exhausted: bool,
pub conditional_pairs: usize,
pub subsumed_groups: usize,
}Expand description
Counters describing what a detection run saw and dropped.
Fields§
§files: usizeFiles analysed.
tokens: usizeTokens across all files.
raw_fingerprints: usizeWinnowed fingerprints indexed by the raw pass.
raw_distinct: usizeDistinct fingerprint values in the raw index.
stop_fingerprints: usizeDistinct fingerprints dropped for exceeding the posting cap.
stop_postings: usizePostings dropped with them.
fragments: usizeCandidate fragments cut for the Type-2 pass.
control_headers_over_limit: usizeMalformed or excessively long control headers that did not become Type-2 body fragments.
fragment_classes: usizeFragment classes (≥ 2 members) that entered pairing.
class_cap_dropped: usizeFragment classes dropped for exceeding the posting cap.
seed_candidates: usizeCandidate seed pairs examined by the raw pass.
raw_pairs_available: usizePairs the raw pass’s eligible posting lists held in total.
Reported beside what was examined so a truncated run says how much of its work it did. “The budget ran out” is compatible with having skipped one candidate and with having skipped nine in ten, and those are not the same result to hand someone.
fragment_candidates: usizeCandidate fragment pairs examined by the fragment pass.
fragment_pairs_available: usizePairs the fragment pass’s eligible classes held in total.
pairs: usizeVerified clone pairs across both passes.
hash_collisions: usizeMembers evicted from a class whose normal form did not match its hash.
pair_budget_exhausted: boolWhether the pair budget ran out before all candidates were examined.
conditional_pairs: usizeCandidate pairs that cannot coexist because they occupy alternative preprocessor arms, or an arm known to be unreachable.
subsumed_groups: usizeType-1 groups absorbed by a containing Type-2 group after both passes.
Trait Implementations§
Source§impl Clone for EngineStats
impl Clone for EngineStats
Source§fn clone(&self) -> EngineStats
fn clone(&self) -> EngineStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EngineStats
impl Debug for EngineStats
Source§impl Default for EngineStats
impl Default for EngineStats
Source§fn default() -> EngineStats
fn default() -> EngineStats
impl Eq for EngineStats
Source§impl PartialEq for EngineStats
impl PartialEq for EngineStats
impl StructuralPartialEq for EngineStats
Auto Trait Implementations§
impl Freeze for EngineStats
impl RefUnwindSafe for EngineStats
impl Send for EngineStats
impl Sync for EngineStats
impl Unpin for EngineStats
impl UnsafeUnpin for EngineStats
impl UnwindSafe for EngineStats
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
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§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
key and return true if they are equal.