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, sender_id: u32);
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 { ... }
}
Expand description
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>
fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>
the client stats (mut)
fn client_stats(&self) -> &[ClientStats]
fn client_stats(&self) -> &[ClientStats]
the client stats
fn start_time(&mut self) -> Duration
fn start_time(&mut self) -> Duration
creation time
Provided methods
fn corpus_size(&self) -> u64
fn corpus_size(&self) -> u64
Amount of elements in the corpus (combined for all children)
fn objective_size(&self) -> u64
fn objective_size(&self) -> u64
Amount of elements in the objectives (combined for all children)
fn total_execs(&mut self) -> u64
fn total_execs(&mut self) -> u64
Total executions
fn execs_per_sec(&mut self) -> u64
fn execs_per_sec(&mut self) -> u64
Executions per second
fn client_stats_mut_for(&mut self, client_id: u32) -> &mut ClientStats
fn client_stats_mut_for(&mut self, client_id: u32) -> &mut ClientStats
The client stats for a specific id, creating new if it doesn’t exist