pub struct OperationProfiler { /* private fields */ }Expand description
Individual operation profiler for timing measurements
Implementations§
Source§impl OperationProfiler
impl OperationProfiler
Sourcepub fn record_simd_instruction(&mut self)
pub fn record_simd_instruction(&mut self)
Record a SIMD instruction execution
Sourcepub fn record_scalar_instruction(&mut self)
pub fn record_scalar_instruction(&mut self)
Record a scalar instruction execution
Sourcepub fn record_memory_load(&mut self)
pub fn record_memory_load(&mut self)
Record memory operations
pub fn record_memory_store(&mut self)
Sourcepub fn finish(self) -> (Duration, InstructionCount)
pub fn finish(self) -> (Duration, InstructionCount)
Finish profiling and return results
Auto Trait Implementations§
impl Freeze for OperationProfiler
impl RefUnwindSafe for OperationProfiler
impl Send for OperationProfiler
impl Sync for OperationProfiler
impl Unpin for OperationProfiler
impl UnsafeUnpin for OperationProfiler
impl UnwindSafe for OperationProfiler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more