pub struct PerformanceProfiler {
pub config: BenchmarkConfig,
/* private fields */
}Expand description
Performance profiler for measuring various metrics
Fields§
§config: BenchmarkConfigImplementations§
Source§impl PerformanceProfiler
impl PerformanceProfiler
pub fn new(config: BenchmarkConfig) -> Self
Sourcepub async fn benchmark_mock_server(&mut self) -> Result<BenchmarkResults>
pub async fn benchmark_mock_server(&mut self) -> Result<BenchmarkResults>
Run a simplified benchmark simulation
Sourcepub async fn benchmark_scenarios(
&mut self,
) -> Result<HashMap<String, BenchmarkResults>>
pub async fn benchmark_scenarios( &mut self, ) -> Result<HashMap<String, BenchmarkResults>>
Benchmark different scenarios
Sourcepub fn analyze_memory_usage(&self) -> MemoryStats
pub fn analyze_memory_usage(&self) -> MemoryStats
Analyze memory usage patterns
Sourcepub fn generate_recommendations(
&self,
results: &BenchmarkResults,
) -> Vec<String>
pub fn generate_recommendations( &self, results: &BenchmarkResults, ) -> Vec<String>
Generate optimization recommendations
Sourcepub fn compare_results(&self, results: &HashMap<String, BenchmarkResults>)
pub fn compare_results(&self, results: &HashMap<String, BenchmarkResults>)
Compare performance between different configurations
Auto Trait Implementations§
impl Freeze for PerformanceProfiler
impl RefUnwindSafe for PerformanceProfiler
impl Send for PerformanceProfiler
impl Sync for PerformanceProfiler
impl Unpin for PerformanceProfiler
impl UnwindSafe for PerformanceProfiler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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