pub struct ProfiledOp {
pub name: String,
pub start: Instant,
pub flops: Option<f64>,
pub bytes: Option<usize>,
}Expand description
A profiled operation with timing.
Fields§
§name: StringOperation name
start: InstantStart time
flops: Option<f64>FLOPS count (optional)
bytes: Option<usize>Bytes processed (optional)
Trait Implementations§
Source§impl Clone for ProfiledOp
impl Clone for ProfiledOp
Source§fn clone(&self) -> ProfiledOp
fn clone(&self) -> ProfiledOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProfiledOp
impl RefUnwindSafe for ProfiledOp
impl Send for ProfiledOp
impl Sync for ProfiledOp
impl Unpin for ProfiledOp
impl UnwindSafe for ProfiledOp
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