pub struct ProfileRun {
pub entrypoint: String,
pub correlation_id: String,
pub phase: ExecutionPhase,
pub capture_step: u64,
pub warmup_steps: u64,
pub device: String,
pub measured_region_device_synchronized: bool,
pub timing_mode: TimingMode,
pub capture_contract: CaptureContract,
pub comparison_identity: Option<ComparisonIdentity>,
pub tags: BTreeMap<String, String>,
}Expand description
Required provenance for one representative profile run.
Fields§
§entrypoint: String§correlation_id: String§phase: ExecutionPhase§capture_step: u64One-based selected update or inference invocation.
warmup_steps: u64§device: String§measured_region_device_synchronized: bool§timing_mode: TimingMode§capture_contract: CaptureContract§comparison_identity: Option<ComparisonIdentity>Implementations§
Source§impl ProfileRun
impl ProfileRun
pub fn training( entrypoint: impl Into<String>, capture_step: u64, device: impl Into<String>, ) -> Self
pub fn tag(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn correlation_id(self, value: impl Into<String>) -> Self
pub fn device_synchronized(self) -> Self
Sourcepub fn measured_region_device_synchronized(self) -> Self
pub fn measured_region_device_synchronized(self) -> Self
Mark only the caller-controlled measured region as device-synchronized. Nested semantic spans remain host-timed.
pub fn inference( entrypoint: impl Into<String>, capture_step: u64, device: impl Into<String>, ) -> Self
pub fn capture_contract(self, contract: CaptureContract) -> Self
pub fn comparison_identity(self, identity: ComparisonIdentity) -> Self
Trait Implementations§
Source§impl Clone for ProfileRun
impl Clone for ProfileRun
Source§fn clone(&self) -> ProfileRun
fn clone(&self) -> ProfileRun
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 ProfileRun
impl Debug for ProfileRun
impl Eq for ProfileRun
Source§impl PartialEq for ProfileRun
impl PartialEq for ProfileRun
impl StructuralPartialEq for ProfileRun
Auto Trait Implementations§
impl Freeze for ProfileRun
impl RefUnwindSafe for ProfileRun
impl Send for ProfileRun
impl Sync for ProfileRun
impl Unpin for ProfileRun
impl UnsafeUnpin for ProfileRun
impl UnwindSafe for ProfileRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more