pub struct PerformanceLogger { /* private fields */ }
Expand description
performance logger
Implementations§
Source§impl PerformanceLogger
impl PerformanceLogger
Sourcepub fn log_operation_start(&self, operation: &str, details: &str)
pub fn log_operation_start(&self, operation: &str, details: &str)
record operation start
Sourcepub fn log_operation_success(
&self,
operation: &str,
duration: Duration,
details: &str,
)
pub fn log_operation_success( &self, operation: &str, duration: Duration, details: &str, )
record operation success
Sourcepub fn log_operation_failure(
&self,
operation: &str,
error: &ExportError,
duration: Duration,
)
pub fn log_operation_failure( &self, operation: &str, error: &ExportError, duration: Duration, )
record operation failure
Sourcepub fn log_performance_metric(
&self,
metric: PerformanceMetric,
value: f64,
threshold: Option<f64>,
)
pub fn log_performance_metric( &self, metric: PerformanceMetric, value: f64, threshold: Option<f64>, )
record performance metric
Sourcepub fn log_memory_usage(&self, current_usage: usize, peak_usage: usize)
pub fn log_memory_usage(&self, current_usage: usize, peak_usage: usize)
record memory usage
Sourcepub fn log_warning(&self, message: &str)
pub fn log_warning(&self, message: &str)
record warning
Sourcepub fn log_error(&self, error: &ExportError)
pub fn log_error(&self, error: &ExportError)
record error
Sourcepub fn generate_performance_report(&self) -> PerformanceReport
pub fn generate_performance_report(&self) -> PerformanceReport
generate performance report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceLogger
impl RefUnwindSafe for PerformanceLogger
impl Send for PerformanceLogger
impl Sync for PerformanceLogger
impl Unpin for PerformanceLogger
impl UnwindSafe for PerformanceLogger
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> 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