Struct puffin::fuzzer::stats_monitor::StatsMonitor
source · pub struct StatsMonitor {
monitor: Box<dyn ClonableMonitor>,
handlers: Vec<Box<dyn EventHandler>>,
}
Expand description
Tracking stats during fuzzing and display both per-client and cumulative info.
Fields§
§monitor: Box<dyn ClonableMonitor>
§handlers: Vec<Box<dyn EventHandler>>
Implementations§
source§impl StatsMonitor
impl StatsMonitor
pub fn with_tui_output(stats_file: PathBuf) -> Self
pub fn with_raw_output(stats_file: PathBuf) -> Self
fn new(
monitor: Box<dyn ClonableMonitor>,
handlers: Vec<Box<dyn EventHandler>>
) -> Self
fn client(&mut self, id: ClientId) -> Statistics
fn global(&mut self) -> Statistics
fn dispatch(&mut self, sender: ClientId, msg: &str, stats: &Statistics)
Trait Implementations§
source§impl Clone for StatsMonitor
impl Clone for StatsMonitor
source§fn clone(&self) -> StatsMonitor
fn clone(&self) -> StatsMonitor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Monitor for StatsMonitor
impl Monitor for StatsMonitor
source§fn client_stats_mut(&mut self) -> &mut Vec<ClientStats> ⓘ
fn client_stats_mut(&mut self) -> &mut Vec<ClientStats> ⓘ
The client monitor (mutable)
source§fn client_stats(&self) -> &[ClientStats]
fn client_stats(&self) -> &[ClientStats]
The client monitor
source§fn start_time(&mut self) -> Duration
fn start_time(&mut self) -> Duration
Creation time
§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) -> f64
fn execs_per_sec(&mut self) -> f64
Executions per second
§fn execs_per_sec_pretty(&mut self) -> String
fn execs_per_sec_pretty(&mut self) -> String
Executions per second
§fn client_stats_mut_for(&mut self, client_id: ClientId) -> &mut ClientStats
fn client_stats_mut_for(&mut self, client_id: ClientId) -> &mut ClientStats
The client monitor for a specific id, creating new if it doesn’t exist
Auto Trait Implementations§
impl !RefUnwindSafe for StatsMonitor
impl !Send for StatsMonitor
impl !Sync for StatsMonitor
impl Unpin for StatsMonitor
impl !UnwindSafe for StatsMonitor
Blanket Implementations§
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.