Struct libafl::stats::ClientStats [−][src]
pub struct ClientStats { pub corpus_size: u64, pub executions: u64, pub objective_size: u64, pub last_window_executions: u64, pub last_window_time: Duration, pub last_execs_per_sec: f32, }
A simple struct to keep track of client stats
Fields
corpus_size: u64
The corpus size for this client
executions: u64
The total executions for this client
objective_size: u64
The size of the objectives corpus for this client
last_window_executions: u64
The last reported executions for this client
last_window_time: Duration
The last time we got this information
last_execs_per_sec: f32
The last executions per sec
Implementations
impl ClientStats
[src]
impl ClientStats
[src]pub fn update_executions(&mut self, executions: u64, cur_time: Duration)
[src]
pub fn update_executions(&mut self, executions: u64, cur_time: Duration)
[src]We got a new information about executions for this client, insert them.
pub fn update_corpus_size(&mut self, corpus_size: u64)
[src]
pub fn update_corpus_size(&mut self, corpus_size: u64)
[src]We got a new information about corpus size for this client, insert them.
pub fn update_objective_size(&mut self, objective_size: u64)
[src]
pub fn update_objective_size(&mut self, objective_size: u64)
[src]We got a new information about objective corpus size for this client, insert them.
pub fn execs_per_sec(&mut self, cur_time: Duration) -> u64
[src]
pub fn execs_per_sec(&mut self, cur_time: Duration) -> u64
[src]Get the calculated executions per second for this client
Trait Implementations
impl Clone for ClientStats
[src]
impl Clone for ClientStats
[src]fn clone(&self) -> ClientStats
[src]
fn clone(&self) -> ClientStats
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ClientStats
[src]
impl Debug for ClientStats
[src]impl Default for ClientStats
[src]
impl Default for ClientStats
[src]fn default() -> ClientStats
[src]
fn default() -> ClientStats
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClientStats
impl Send for ClientStats
impl Sync for ClientStats
impl Unpin for ClientStats
impl UnwindSafe for ClientStats
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more