Enum gbench::BenchData[][src]

pub enum BenchData {
    Log {
        log: String,
        ts: f32,
        tid: usize,
    },
    Bench {
        name: String,
        ts: f32,
        dur: f32,
        tid: usize,
    },
    Count {
        name: String,
        ts: f32,
        tid: usize,
        data: Vec<(String, f32)>,
    },
}
Expand description

Enum that represents different benchmarking data

Data that is passed to the writers is in form of these enums.

Fields

  • ts - timestamp
  • dur - duration
  • tid - thread id

Variants

Log

Log contains logging data produced by the log! macro

Show fields

Fields of Log

log: Stringts: f32tid: usize
Bench

Bench contains benchmarking data produced by the scope! macro

Show fields

Fields of Bench

name: Stringts: f32dur: f32tid: usize
Count

Count contains counting data produced by the count! macro

Show fields

Fields of Count

name: Stringts: f32tid: usizedata: Vec<(String, f32)>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.