pub struct ActivityRecord {
pub kind: CuptiActivityKind,
pub start_ns: u64,
pub end_ns: u64,
pub correlation_id: u32,
}Expand description
A single timestamped activity record, the host-model analogue of one
CUpti_Activity* struct drained from a completed buffer.
Fields§
§kind: CuptiActivityKindThe record category.
start_ns: u64Start timestamp in nanoseconds (device clock domain).
end_ns: u64End timestamp in nanoseconds.
correlation_id: u32Correlation id linking this record to its launching API call.
Implementations§
Source§impl ActivityRecord
impl ActivityRecord
Sourcepub fn duration_ns(&self) -> u64
pub fn duration_ns(&self) -> u64
Duration of the activity in nanoseconds (end - start, saturating).
Trait Implementations§
Source§impl Clone for ActivityRecord
impl Clone for ActivityRecord
Source§fn clone(&self) -> ActivityRecord
fn clone(&self) -> ActivityRecord
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 ActivityRecord
Source§impl Debug for ActivityRecord
impl Debug for ActivityRecord
impl Eq for ActivityRecord
Source§impl PartialEq for ActivityRecord
impl PartialEq for ActivityRecord
Source§fn eq(&self, other: &ActivityRecord) -> bool
fn eq(&self, other: &ActivityRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivityRecord
Auto Trait Implementations§
impl Freeze for ActivityRecord
impl RefUnwindSafe for ActivityRecord
impl Send for ActivityRecord
impl Sync for ActivityRecord
impl Unpin for ActivityRecord
impl UnsafeUnpin for ActivityRecord
impl UnwindSafe for ActivityRecord
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