Trait libafl::stats::Stats [−][src]
pub trait Stats { fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>; fn client_stats(&self) -> &[ClientStats]; fn start_time(&mut self) -> Duration; fn display(&mut self, event_msg: String); fn corpus_size(&self) -> u64 { ... } fn objective_size(&self) -> u64 { ... } fn total_execs(&mut self) -> u64 { ... } fn execs_per_sec(&mut self) -> u64 { ... } fn client_stats_mut_for(&mut self, client_id: u32) -> &mut ClientStats { ... } }
The stats trait keeps track of all the client’s stats, and offers methods to dispaly them.
Required methods
fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>
[src]
the client stats (mut)
fn client_stats(&self) -> &[ClientStats]
[src]
the client stats
fn start_time(&mut self) -> Duration
[src]
creation time
fn display(&mut self, event_msg: String)
[src]
show the stats to the user
Provided methods
fn corpus_size(&self) -> u64
[src]
Amount of elements in the corpus (combined for all children)
fn objective_size(&self) -> u64
[src]
Amount of elements in the objectives (combined for all children)
fn total_execs(&mut self) -> u64
[src]
Total executions
fn execs_per_sec(&mut self) -> u64
[src]
Executions per second
fn client_stats_mut_for(&mut self, client_id: u32) -> &mut ClientStats
[src]
The client stats for a specific id, creating new if it doesn’t exist
Implementors
impl<F> Stats for SimpleStats<F> where
F: FnMut(String),
[src]
impl<F> Stats for SimpleStats<F> where
F: FnMut(String),
[src]fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>
[src]
fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>
[src]the client stats, mutable
fn client_stats(&self) -> &[ClientStats]
[src]
fn client_stats(&self) -> &[ClientStats]
[src]the client stats
fn start_time(&mut self) -> Duration
[src]
fn start_time(&mut self) -> Duration
[src]Time this fuzzing run stated