pub struct TimingAnalyzer { /* private fields */ }Expand description
Analyzer for timing and performance metrics
Implementations§
Source§impl TimingAnalyzer
impl TimingAnalyzer
Sourcepub fn with_config(config: TimingAnalyzerConfig) -> Self
pub fn with_config(config: TimingAnalyzerConfig) -> Self
Create a new timing analyzer with custom configuration
Sourcepub fn with_bucket_size(time_bucket_size: u32) -> Self
pub fn with_bucket_size(time_bucket_size: u32) -> Self
Create a new timing analyzer with custom bucket size
Sourcepub fn analyze_timing(&self, entries: &[LogEntry]) -> Result<TimingAnalysis>
pub fn analyze_timing(&self, entries: &[LogEntry]) -> Result<TimingAnalysis>
Analyze timing patterns in log entries
Sourcepub fn analyze_timing_events(
&self,
events: &[NormalizedEvent],
) -> Result<TimingAnalysis>
pub fn analyze_timing_events( &self, events: &[NormalizedEvent], ) -> Result<TimingAnalysis>
Analyze timing patterns in normalized events.
Sourcepub fn calculate_percentiles(
&self,
response_times: &[f64],
percentiles: &[f64],
) -> Result<Vec<(f64, f64)>>
pub fn calculate_percentiles( &self, response_times: &[f64], percentiles: &[f64], ) -> Result<Vec<(f64, f64)>>
Calculate response time percentiles
Sourcepub fn analyze_hourly_distribution(
&self,
entries: &[LogEntry],
) -> Result<HashMap<u32, HourlyMetrics>>
pub fn analyze_hourly_distribution( &self, entries: &[LogEntry], ) -> Result<HashMap<u32, HourlyMetrics>>
Analyze hourly query distribution
Sourcepub fn analyze_connection_patterns(
&self,
entries: &[LogEntry],
) -> Result<ConnectionAnalysis>
pub fn analyze_connection_patterns( &self, entries: &[LogEntry], ) -> Result<ConnectionAnalysis>
Analyze connection patterns
Sourcepub fn get_peak_usage_analysis(
&self,
entries: &[LogEntry],
) -> Result<PeakUsageAnalysis>
pub fn get_peak_usage_analysis( &self, entries: &[LogEntry], ) -> Result<PeakUsageAnalysis>
Get peak usage analysis
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimingAnalyzer
impl RefUnwindSafe for TimingAnalyzer
impl Send for TimingAnalyzer
impl Sync for TimingAnalyzer
impl Unpin for TimingAnalyzer
impl UnsafeUnpin for TimingAnalyzer
impl UnwindSafe for TimingAnalyzer
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