pub struct StageMetrics {Show 15 fields
pub stage_id: String,
pub execution_time: Duration,
pub execution_count: u32,
pub total_execution_time: Duration,
pub average_execution_time: Duration,
pub peak_memory: usize,
pub peak_memory_usage: usize,
pub input_rows: usize,
pub output_rows: usize,
pub total_rows_processed: usize,
pub error_count: u32,
pub cpu_time: Duration,
pub io_operations: usize,
pub cache_hit_ratio: Option<f64>,
pub last_execution: SystemTime,
}Expand description
Performance metrics for a pipeline stage
Fields§
§stage_id: StringStage identifier
execution_time: DurationStage execution time
execution_count: u32Number of times stage has been executed
total_execution_time: DurationTotal execution time across all runs
average_execution_time: DurationAverage execution time per run
peak_memory: usizeMemory peak usage during stage
peak_memory_usage: usizeMemory peak usage during stage (alternative name)
input_rows: usizeNumber of rows input to stage
output_rows: usizeNumber of rows output from stage
total_rows_processed: usizeTotal rows processed (alternative name)
error_count: u32Number of errors encountered
cpu_time: DurationCPU time spent in stage
io_operations: usizeI/O operations performed
cache_hit_ratio: Option<f64>Cache hit ratio (if applicable)
last_execution: SystemTimeTimestamp of last execution
Trait Implementations§
Source§impl Clone for StageMetrics
impl Clone for StageMetrics
Source§fn clone(&self) -> StageMetrics
fn clone(&self) -> StageMetrics
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 StageMetrics
impl Debug for StageMetrics
Source§impl<'de> Deserialize<'de> for StageMetrics
impl<'de> Deserialize<'de> for StageMetrics
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 StageMetrics
impl RefUnwindSafe for StageMetrics
impl Send for StageMetrics
impl Sync for StageMetrics
impl Unpin for StageMetrics
impl UnwindSafe for StageMetrics
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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