pub struct PerformanceProfiler { /* private fields */ }Expand description
Performance profiler for tracking algorithm behavior
Implementations§
Source§impl PerformanceProfiler
impl PerformanceProfiler
Sourcepub fn start_phase(&mut self, phasename: &str)
pub fn start_phase(&mut self, phasename: &str)
Start profiling a specific phase
Sourcepub fn record_function_evaluation(&mut self)
pub fn record_function_evaluation(&mut self)
Record a function evaluation
Sourcepub fn record_jacobian_evaluation(&mut self)
pub fn record_jacobian_evaluation(&mut self)
Record a Jacobian evaluation
Sourcepub fn record_linear_solve(&mut self)
pub fn record_linear_solve(&mut self)
Record a linear system solve
Sourcepub fn record_convergence(&mut self, residualnorm: f64)
pub fn record_convergence(&mut self, residualnorm: f64)
Record convergence information
Sourcepub fn record_step_size(&mut self, stepsize: f64)
pub fn record_step_size(&mut self, stepsize: f64)
Record step size adaptation
Sourcepub fn record_error_estimate(&mut self, error: f64)
pub fn record_error_estimate(&mut self, error: f64)
Record error estimate
Sourcepub fn record_metric(&mut self, name: &str, value: f64)
pub fn record_metric(&mut self, name: &str, value: f64)
Record algorithm-specific metric
Sourcepub fn update_memory_stats(&mut self, current_memory: usize, peak_memory: usize)
pub fn update_memory_stats(&mut self, current_memory: usize, peak_memory: usize)
Update memory statistics
Sourcepub fn estimate_flops(&mut self, operations: usize, time: Duration)
pub fn estimate_flops(&mut self, operations: usize, time: Duration)
Estimate FLOPS based on operations and time
Sourcepub fn finalize(&self) -> PerformanceMetrics
pub fn finalize(&self) -> PerformanceMetrics
Finalize profiling and get metrics
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<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