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
Bench
Bench contains benchmarking data produced by the scope! macro
Count
Count contains counting data produced by the count! macro
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchData
impl RefUnwindSafe for BenchData
impl Send for BenchData
impl Sync for BenchData
impl Unpin for BenchData
impl UnwindSafe for BenchData
Blanket Implementations§
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