pub struct KernelStats {
pub name: String,
pub launch_count: usize,
pub total_time: Duration,
pub average_time: Duration,
pub min_time: Duration,
pub max_time: Duration,
pub total_threads: usize,
pub total_blocks: usize,
pub shared_memory_bytes: usize,
pub occupancy: f32,
pub throughput_gbps: f32,
pub flops: f64,
}Expand description
Detailed kernel execution statistics
Fields§
§name: String§launch_count: usize§total_time: Duration§average_time: Duration§min_time: Duration§max_time: Duration§total_threads: usize§total_blocks: usize§occupancy: f32§throughput_gbps: f32§flops: f64Implementations§
Source§impl KernelStats
impl KernelStats
pub fn new(name: String) -> Self
pub fn record_launch( &mut self, duration: Duration, config: &LaunchConfig, bytes_processed: usize, operations: f64, )
pub fn print_summary(&self)
Trait Implementations§
Source§impl Clone for KernelStats
impl Clone for KernelStats
Source§fn clone(&self) -> KernelStats
fn clone(&self) -> KernelStats
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 KernelStats
impl RefUnwindSafe for KernelStats
impl Send for KernelStats
impl Sync for KernelStats
impl Unpin for KernelStats
impl UnwindSafe for KernelStats
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