pub struct DeviceCommandExecutionTiming { /* private fields */ }Expand description
Backend-counter timing for one command entry in a core-owned submission. A command may own multiple physical encoder intervals, for example a gather-compute-scatter implementation.
Implementations§
Source§impl DeviceCommandExecutionTiming
impl DeviceCommandExecutionTiming
pub fn new( command_index: u32, intervals: Vec<DeviceExecutionInterval>, ) -> Option<Self>
pub const fn command_index(&self) -> u32
pub fn intervals(&self) -> &[DeviceExecutionInterval]
pub fn elapsed_ns(&self) -> u64
Trait Implementations§
Source§impl Clone for DeviceCommandExecutionTiming
impl Clone for DeviceCommandExecutionTiming
Source§fn clone(&self) -> DeviceCommandExecutionTiming
fn clone(&self) -> DeviceCommandExecutionTiming
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 DeviceCommandExecutionTiming
impl Debug for DeviceCommandExecutionTiming
impl Eq for DeviceCommandExecutionTiming
impl StructuralPartialEq for DeviceCommandExecutionTiming
Auto Trait Implementations§
impl Freeze for DeviceCommandExecutionTiming
impl RefUnwindSafe for DeviceCommandExecutionTiming
impl Send for DeviceCommandExecutionTiming
impl Sync for DeviceCommandExecutionTiming
impl Unpin for DeviceCommandExecutionTiming
impl UnsafeUnpin for DeviceCommandExecutionTiming
impl UnwindSafe for DeviceCommandExecutionTiming
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