pub struct BottleneckDetector { /* private fields */ }Expand description
Performance bottleneck detector
Implementations§
Source§impl BottleneckDetector
impl BottleneckDetector
pub fn new() -> Self
Sourcepub fn add_profile(&mut self, pipeline_id: String, steps: Vec<ExecutionStep>)
pub fn add_profile(&mut self, pipeline_id: String, steps: Vec<ExecutionStep>)
Add execution profile for analysis
Sourcepub fn detect_bottlenecks(&self, pipeline_id: &str) -> Vec<BottleneckReport>
pub fn detect_bottlenecks(&self, pipeline_id: &str) -> Vec<BottleneckReport>
Detect bottlenecks in a pipeline
Sourcepub fn set_baseline(
&mut self,
pipeline_id: String,
baseline: PerformanceBaseline,
)
pub fn set_baseline( &mut self, pipeline_id: String, baseline: PerformanceBaseline, )
Set performance baseline for comparison
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BottleneckDetector
impl RefUnwindSafe for BottleneckDetector
impl Send for BottleneckDetector
impl Sync for BottleneckDetector
impl Unpin for BottleneckDetector
impl UnwindSafe for BottleneckDetector
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