pub struct PerformanceMonitor { /* private fields */ }
Expand description
Comprehensive performance monitoring system
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
Sourcepub fn start_monitoring(&self)
pub fn start_monitoring(&self)
Start performance monitoring
Sourcepub fn record_file_processed(&self, bytes: u64, duration: Duration)
pub fn record_file_processed(&self, bytes: u64, duration: Duration)
Record file processing
Sourcepub fn record_file_filtered(&self)
pub fn record_file_filtered(&self)
Record file filtered
Sourcepub fn record_file_cached(&self)
pub fn record_file_cached(&self)
Record file cached
Sourcepub fn record_file_failed(&self)
pub fn record_file_failed(&self)
Record file failed
Sourcepub fn record_io_operation(&self, bytes: u64, duration: Duration)
pub fn record_io_operation(&self, bytes: u64, duration: Duration)
Record I/O operation
Sourcepub fn record_git_operation(&self, duration: Duration)
pub fn record_git_operation(&self, duration: Duration)
Record git operation
Sourcepub fn record_cache_miss(&self)
pub fn record_cache_miss(&self)
Record cache miss
Sourcepub fn record_error(&self, error_type: ErrorType)
pub fn record_error(&self, error_type: ErrorType)
Record error
Sourcepub fn update_memory_usage(&self, bytes: u64)
pub fn update_memory_usage(&self, bytes: u64)
Update memory usage
Sourcepub fn update_thread_count(&self, count: usize)
pub fn update_thread_count(&self, count: usize)
Update thread count
Sourcepub fn profile_operation(
&self,
name: &str,
duration: Duration,
bytes: u64,
success: bool,
)
pub fn profile_operation( &self, name: &str, duration: Duration, bytes: u64, success: bool, )
Profile an operation
Sourcepub fn get_current_snapshot(&self) -> PerformanceSnapshot
pub fn get_current_snapshot(&self) -> PerformanceSnapshot
Get current performance snapshot
Sourcepub fn get_aggregated_stats(&self) -> AggregatedStats
pub fn get_aggregated_stats(&self) -> AggregatedStats
Get aggregated performance statistics
Sourcepub fn get_operation_profiles(&self) -> FxHashMap<String, OperationProfile>
pub fn get_operation_profiles(&self) -> FxHashMap<String, OperationProfile>
Get operation profiles
Sourcepub fn generate_report(&self) -> PerformanceReport
pub fn generate_report(&self) -> PerformanceReport
Generate performance report
Sourcepub fn reset_metrics(&self)
pub fn reset_metrics(&self)
Reset all metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceMonitor
impl !RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl !UnwindSafe for PerformanceMonitor
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