pub struct ExecutionStats {Show 19 fields
pub instructions_executed: u64,
pub integer_ops: u64,
pub float_ops: u64,
pub memory_ops: u64,
pub control_ops: u64,
pub wave_ops: u64,
pub atomic_ops: u64,
pub device_loads: u64,
pub device_load_bytes: u64,
pub device_stores: u64,
pub device_store_bytes: u64,
pub local_loads: u64,
pub local_load_bytes: u64,
pub local_stores: u64,
pub local_store_bytes: u64,
pub barriers: u64,
pub divergent_branches: u64,
pub workgroups_executed: u64,
pub waves_executed: u64,
}Fields§
§instructions_executed: u64§integer_ops: u64§float_ops: u64§memory_ops: u64§control_ops: u64§wave_ops: u64§atomic_ops: u64§device_loads: u64§device_load_bytes: u64§device_stores: u64§device_store_bytes: u64§local_loads: u64§local_load_bytes: u64§local_stores: u64§local_store_bytes: u64§barriers: u64§divergent_branches: u64§workgroups_executed: u64§waves_executed: u64Implementations§
Source§impl ExecutionStats
impl ExecutionStats
pub fn new() -> Self
pub fn record_instruction(&mut self, category: InstructionCategory)
pub fn record_device_load(&mut self, bytes: u64)
pub fn record_device_store(&mut self, bytes: u64)
pub fn record_local_load(&mut self, bytes: u64)
pub fn record_local_store(&mut self, bytes: u64)
pub fn record_barrier(&mut self)
pub fn record_divergent_branch(&mut self)
pub fn record_wave(&mut self)
pub fn merge(&mut self, other: &ExecutionStats)
Trait Implementations§
Source§impl Clone for ExecutionStats
impl Clone for ExecutionStats
Source§fn clone(&self) -> ExecutionStats
fn clone(&self) -> ExecutionStats
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 moreSource§impl Debug for ExecutionStats
impl Debug for ExecutionStats
Source§impl Default for ExecutionStats
impl Default for ExecutionStats
Source§fn default() -> ExecutionStats
fn default() -> ExecutionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecutionStats
impl RefUnwindSafe for ExecutionStats
impl Send for ExecutionStats
impl Sync for ExecutionStats
impl Unpin for ExecutionStats
impl UnsafeUnpin for ExecutionStats
impl UnwindSafe for ExecutionStats
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