pub struct OpEvent {
pub span_id: String,
pub op_name: String,
pub inputs: Vec<String>,
pub output: Option<String>,
pub shape: Vec<usize>,
pub dtype: String,
pub device: String,
pub duration_ns: u64,
pub timestamp_ns: u64,
pub storage_bytes: Option<u64>,
pub input_storage_bytes: u64,
}Expand description
Timed operation inside a span (matmul, add, function body, …).
Fields§
§span_id: String§op_name: String§inputs: Vec<String>§output: Option<String>§shape: Vec<usize>§dtype: String§device: String§duration_ns: u64§timestamp_ns: u64Monotonic timestamp for memory timeline ordering (nanoseconds since probe start).
storage_bytes: Option<u64>Dense output storage bytes; derived from shape×dtype when omitted at parse time.
input_storage_bytes: u64Sum of input tensor storage (PyTorch record_shapes footprint).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpEvent
impl<'de> Deserialize<'de> for OpEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpEvent
impl StructuralPartialEq for OpEvent
Auto Trait Implementations§
impl Freeze for OpEvent
impl RefUnwindSafe for OpEvent
impl Send for OpEvent
impl Sync for OpEvent
impl Unpin for OpEvent
impl UnsafeUnpin for OpEvent
impl UnwindSafe for OpEvent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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