pub struct ExecutionHandle { /* private fields */ }Expand description
Execution handle for tracking a specific pipeline run
Implementations§
Source§impl ExecutionHandle
impl ExecutionHandle
Sourcepub fn start_stage(&mut self, stage_name: &str)
pub fn start_stage(&mut self, stage_name: &str)
Start timing a pipeline stage
Sourcepub fn record_metric(&self, name: &str, value: f64)
pub fn record_metric(&self, name: &str, value: f64)
Record custom metric
Sourcepub fn record_memory_usage(&self, usage_mb: f64)
pub fn record_memory_usage(&self, usage_mb: f64)
Record memory usage
Sourcepub fn record_throughput(&self, samples_per_sec: f64)
pub fn record_throughput(&self, samples_per_sec: f64)
Record throughput
Auto Trait Implementations§
impl Freeze for ExecutionHandle
impl RefUnwindSafe for ExecutionHandle
impl Send for ExecutionHandle
impl Sync for ExecutionHandle
impl Unpin for ExecutionHandle
impl UnwindSafe for ExecutionHandle
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> 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