pub trait Profiler: Send + Sync {
// Required methods
fn start_profile<'life0, 'life1, 'async_trait>(
&'life0 self,
operation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = RragResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn end_profile<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
operation_id: &'life1 str,
operation: &'life2 str,
component: &'life3 str,
) -> Pin<Box<dyn Future<Output = RragResult<Option<ProfileData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn record_profile<'life0, 'async_trait>(
&'life0 self,
profile: ProfileData,
) -> Pin<Box<dyn Future<Output = RragResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn analyze_bottlenecks<'life0, 'async_trait>(
&'life0 self,
period_minutes: u32,
) -> Pin<Box<dyn Future<Output = BottleneckAnalysis> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn generate_report<'life0, 'async_trait>(
&'life0 self,
period: Duration,
) -> Pin<Box<dyn Future<Output = PerformanceReport> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Profiler trait for custom profiling implementations