pub struct RuntimeProfiler { /* private fields */ }Expand description
Runtime performance profiler that adapts thresholds based on actual performance
Implementations§
Source§impl RuntimeProfiler
impl RuntimeProfiler
Sourcepub fn record_measurement(&self, measurement: PerformanceMeasurement)
pub fn record_measurement(&self, measurement: PerformanceMeasurement)
Record a performance measurement
Sourcepub fn get_thresholds(&self) -> AdaptiveThresholds
pub fn get_thresholds(&self) -> AdaptiveThresholds
Get current adaptive thresholds
Sourcepub fn get_statistics(&self) -> ProfilerStatistics
pub fn get_statistics(&self) -> ProfilerStatistics
Get performance statistics for monitoring
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeProfiler
impl RefUnwindSafe for RuntimeProfiler
impl Send for RuntimeProfiler
impl Sync for RuntimeProfiler
impl Unpin for RuntimeProfiler
impl UnwindSafe for RuntimeProfiler
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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