pub struct ExecutionMetadata {
pub component_name: String,
pub start_time: u64,
pub end_time: Option<u64>,
pub duration_ms: Option<f64>,
pub input_shape: Option<(usize, usize)>,
pub output_shape: Option<(usize, usize)>,
pub memory_before_mb: Option<f64>,
pub memory_after_mb: Option<f64>,
pub cpu_utilization: Option<f64>,
pub warnings: Vec<String>,
pub extra_metadata: HashMap<String, String>,
}Expand description
Standard execution metadata that all components should provide
Fields§
§component_name: StringComponent name
start_time: u64Execution start time (Unix timestamp)
end_time: Option<u64>Execution end time (Unix timestamp)
duration_ms: Option<f64>Execution duration in milliseconds
input_shape: Option<(usize, usize)>Input data shape
output_shape: Option<(usize, usize)>Output data shape
memory_before_mb: Option<f64>Memory usage before execution (MB)
memory_after_mb: Option<f64>Memory usage after execution (MB)
cpu_utilization: Option<f64>CPU utilization during execution (0.0 to 1.0)
warnings: Vec<String>Any warnings generated during execution
extra_metadata: HashMap<String, String>Additional metadata
Trait Implementations§
Source§impl Clone for ExecutionMetadata
impl Clone for ExecutionMetadata
Source§fn clone(&self) -> ExecutionMetadata
fn clone(&self) -> ExecutionMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionMetadata
impl Debug for ExecutionMetadata
Source§impl<'de> Deserialize<'de> for ExecutionMetadata
impl<'de> Deserialize<'de> for ExecutionMetadata
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
Auto Trait Implementations§
impl Freeze for ExecutionMetadata
impl RefUnwindSafe for ExecutionMetadata
impl Send for ExecutionMetadata
impl Sync for ExecutionMetadata
impl Unpin for ExecutionMetadata
impl UnwindSafe for ExecutionMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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