Struct butterfly_fuzz::StateMonitor
source · [−]pub struct StateMonitor { /* private fields */ }Expand description
A monitor that prints information about the state-graph in addition to all other info.
Works as a drop-in replacement for all other monitors.
Implementations
sourceimpl StateMonitor
impl StateMonitor
Trait Implementations
sourceimpl Clone for StateMonitor
impl Clone for StateMonitor
sourcefn clone(&self) -> StateMonitor
fn clone(&self) -> StateMonitor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StateMonitor
impl Debug for StateMonitor
sourceimpl HasStateStats for StateMonitor
impl HasStateStats for StateMonitor
sourcefn calculate_average(&mut self, stat: &str) -> u64
fn calculate_average(&mut self, stat: &str) -> u64
Helper function used by the other functions.
sourcefn avg_statemachine_nodes(&mut self) -> u64
fn avg_statemachine_nodes(&mut self) -> u64
Get the average number of vertices in the state-graphs across all instances.
sourcefn avg_statemachine_edges(&mut self) -> u64
fn avg_statemachine_edges(&mut self) -> u64
Get the average number of edges in the state-graphs across all instances.
sourceimpl Monitor for StateMonitor
impl Monitor for StateMonitor
sourcefn client_stats_mut(&mut self) -> &mut Vec<ClientStats>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn client_stats_mut(&mut self) -> &mut Vec<ClientStats>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The client monitor (mutable)
sourcefn client_stats(&self) -> &[ClientStats]
fn client_stats(&self) -> &[ClientStats]
The client monitor
sourcefn start_time(&mut self) -> Duration
fn start_time(&mut self) -> Duration
Creation time
sourcefn corpus_size(&self) -> u64
fn corpus_size(&self) -> u64
Amount of elements in the corpus (combined for all children)
sourcefn objective_size(&self) -> u64
fn objective_size(&self) -> u64
Amount of elements in the objectives (combined for all children)
sourcefn total_execs(&mut self) -> u64
fn total_execs(&mut self) -> u64
Total executions
sourcefn execs_per_sec(&mut self) -> u64
fn execs_per_sec(&mut self) -> u64
Executions per second
sourcefn 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 monitor for a specific id, creating new if it doesn’t exist
Auto Trait Implementations
impl RefUnwindSafe for StateMonitor
impl Send for StateMonitor
impl Sync for StateMonitor
impl Unpin for StateMonitor
impl UnwindSafe for StateMonitor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.