pub struct KernelPerfCounters {
pub dispatch_count: u64,
pub elements_processed: u64,
pub flop_count: u64,
pub bytes_read: u64,
pub bytes_written: u64,
}Expand description
Lightweight performance counters attached to a single kernel invocation.
Fields§
§dispatch_count: u64Number of times the kernel was dispatched.
elements_processed: u64Total elements processed across all dispatches.
flop_count: u64Estimated floating-point operations (MACs counted as 2 FLOPs).
bytes_read: u64Total bytes read from global memory (mock).
bytes_written: u64Total bytes written to global memory (mock).
Implementations§
Trait Implementations§
Source§impl Clone for KernelPerfCounters
impl Clone for KernelPerfCounters
Source§fn clone(&self) -> KernelPerfCounters
fn clone(&self) -> KernelPerfCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelPerfCounters
impl Debug for KernelPerfCounters
Source§impl Default for KernelPerfCounters
impl Default for KernelPerfCounters
Source§fn default() -> KernelPerfCounters
fn default() -> KernelPerfCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KernelPerfCounters
impl RefUnwindSafe for KernelPerfCounters
impl Send for KernelPerfCounters
impl Sync for KernelPerfCounters
impl Unpin for KernelPerfCounters
impl UnsafeUnpin for KernelPerfCounters
impl UnwindSafe for KernelPerfCounters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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