pub struct FuzzingStatistics {
pub instructions: HashMap<String, IterationStats>,
}Expand description
Manages and aggregates statistics for fuzzing instructions.
Fields§
§instructions: HashMap<String, IterationStats>Implementations§
Source§impl FuzzingStatistics
impl FuzzingStatistics
Sourcepub fn new() -> FuzzingStatistics
pub fn new() -> FuzzingStatistics
Constructs a new, empty FuzzingStatistics.
Sourcepub fn output_serialized(&self)
pub fn output_serialized(&self)
Outputs the statistics as a serialized JSON string.
Sourcepub fn increase_invoked(&mut self, instruction: String)
pub fn increase_invoked(&mut self, instruction: String)
Increments the invocation count for a given instruction.
§Arguments
instruction- The instruction to increment the count for.
Sourcepub fn increase_successful(&mut self, instruction: String)
pub fn increase_successful(&mut self, instruction: String)
Increments the successful invocation count for a given instruction.
§Arguments
instruction- The instruction to increment the successful count for.
pub fn increase_failed(&mut self, instruction: String)
pub fn increase_failed_check(&mut self, instruction: String)
Sourcepub fn insert_serialized(&mut self, serialized_iteration: &str)
pub fn insert_serialized(&mut self, serialized_iteration: &str)
Inserts or updates instructions with statistics provided in a serialized string.
§Arguments
serialized_iteration- The serialized statistics to insert or update.
Sourcepub fn show_table(&self)
pub fn show_table(&self)
Displays the collected statistics in a formatted table.
Trait Implementations§
Source§impl Debug for FuzzingStatistics
impl Debug for FuzzingStatistics
Source§impl Default for FuzzingStatistics
impl Default for FuzzingStatistics
Source§fn default() -> FuzzingStatistics
fn default() -> FuzzingStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FuzzingStatistics
impl RefUnwindSafe for FuzzingStatistics
impl Send for FuzzingStatistics
impl Sync for FuzzingStatistics
impl Unpin for FuzzingStatistics
impl UnwindSafe for FuzzingStatistics
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more