pub struct DeviceNativeWorkAttribution { /* private fields */ }Expand description
Backend-observed physical work for one core-owned command entry.
Rows are created only when core explicitly requests attribution. The node index is issued by core and binds backend work back to the immutable plan; backend labels and counters carry observation only and grant no execution authority.
Implementations§
Source§impl DeviceNativeWorkAttribution
impl DeviceNativeWorkAttribution
pub fn new( command_index: u32, node_index: Option<u32>, command_phase: DeviceCommandPhase, native_op_id: DeviceNativeOperationId, execution_path: DeviceExecutionPath, batching_form: DeviceBatchingForm, participant_count: u32, token_count: u64, compute_dispatch_count: u64, transfer_command_count: u64, reusable_graph_node_count: Option<u64>, ) -> Option<Self>
pub fn with_participant_range( command_index: u32, node_index: Option<u32>, command_phase: DeviceCommandPhase, native_op_id: DeviceNativeOperationId, execution_path: DeviceExecutionPath, batching_form: DeviceBatchingForm, participant_start: u32, participant_count: u32, token_count: u64, compute_dispatch_count: u64, transfer_command_count: u64, reusable_graph_node_count: Option<u64>, ) -> Option<Self>
pub const fn command_index(&self) -> u32
pub const fn node_index(&self) -> Option<u32>
pub const fn command_phase(&self) -> DeviceCommandPhase
pub const fn native_op_id(&self) -> &'static str
pub const fn execution_path(&self) -> DeviceExecutionPath
pub const fn batching_form(&self) -> DeviceBatchingForm
pub const fn participant_start(&self) -> u32
pub const fn participant_count(&self) -> u32
pub const fn participant_end(&self) -> u32
pub const fn token_count(&self) -> u64
pub const fn compute_dispatch_count(&self) -> u64
pub const fn transfer_command_count(&self) -> u64
Sourcepub const fn reusable_graph_node_count(&self) -> Option<u64>
pub const fn reusable_graph_node_count(&self) -> Option<u64>
Actual native graph nodes captured for this replayed command.
This observation may include kernels, copies, memsets, and dependency nodes selected internally by a native library.
Trait Implementations§
Source§impl Clone for DeviceNativeWorkAttribution
impl Clone for DeviceNativeWorkAttribution
Source§fn clone(&self) -> DeviceNativeWorkAttribution
fn clone(&self) -> DeviceNativeWorkAttribution
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 DeviceNativeWorkAttribution
impl Debug for DeviceNativeWorkAttribution
impl Eq for DeviceNativeWorkAttribution
impl StructuralPartialEq for DeviceNativeWorkAttribution
Auto Trait Implementations§
impl Freeze for DeviceNativeWorkAttribution
impl RefUnwindSafe for DeviceNativeWorkAttribution
impl Send for DeviceNativeWorkAttribution
impl Sync for DeviceNativeWorkAttribution
impl Unpin for DeviceNativeWorkAttribution
impl UnsafeUnpin for DeviceNativeWorkAttribution
impl UnwindSafe for DeviceNativeWorkAttribution
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