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(&self) -> Duration
fn start_time(&self) -> Duration
Creation time
source§fn set_start_time(&mut self, time: Duration)
fn set_start_time(&mut self, time: Duration)
Set 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(&self) -> u64
fn total_execs(&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_insert(&mut self, client_id: ClientId)
fn client_stats_insert(&mut self, client_id: ClientId)
The client monitor for a specific id, creating new if it doesn’t exist
§fn client_stats_mut_for(&mut self, client_id: ClientId) -> &mut ClientStats
fn client_stats_mut_for(&mut self, client_id: ClientId) -> &mut ClientStats
Get mutable reference to client stats
§fn client_stats_for(&self, client_id: ClientId) -> &ClientStats
fn client_stats_for(&self, client_id: ClientId) -> &ClientStats
Get immutable reference to client stats
Auto Trait Implementations§
impl Freeze for StatsMonitor
impl !RefUnwindSafe for StatsMonitor
impl !Send for StatsMonitor
impl !Sync for StatsMonitor
impl Unpin for StatsMonitor
impl !UnwindSafe for StatsMonitor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.