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]

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]

We got a new information about corpus size for this client, insert them.

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]

Get the calculated executions per second for this client

Trait Implementations

impl Clone for 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]

Performs copy-assignment from source. Read more

impl Debug for ClientStats[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for ClientStats[src]

fn default() -> ClientStats[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.