pub struct ExecutionStats {
pub submissions: u64,
pub kernel_dispatches: u64,
pub upload_bytes: u64,
pub readback_bytes: u64,
pub device_us: u128,
}Expand description
Execution counters reported by accelerator sessions and surfaces.
Fields§
§submissions: u64Number of submitted backend command buffers, streams, or equivalent jobs.
kernel_dispatches: u64Number of kernel or shader dispatches.
upload_bytes: u64Bytes uploaded from host to device.
readback_bytes: u64Bytes read back from device to host.
device_us: u128Backend-reported execution time in microseconds, when available.
Implementations§
Source§impl ExecutionStats
impl ExecutionStats
Sourcepub const fn new() -> ExecutionStats
pub const fn new() -> ExecutionStats
Construct empty execution statistics.
Sourcepub const fn saturating_add(self, other: ExecutionStats) -> ExecutionStats
pub const fn saturating_add(self, other: ExecutionStats) -> ExecutionStats
Saturating sum of two execution-stat blocks.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutionStats
Source§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
impl Eq for ExecutionStats
Source§impl Hash for ExecutionStats
impl Hash for ExecutionStats
Source§impl PartialEq for ExecutionStats
impl PartialEq for ExecutionStats
Source§fn eq(&self, other: &ExecutionStats) -> bool
fn eq(&self, other: &ExecutionStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExecutionStats
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