pub struct SimdProfiler { /* private fields */ }Expand description
Performance counter for tracking SIMD operation metrics
Implementations§
Source§impl SimdProfiler
impl SimdProfiler
Sourcepub fn start_operation(&mut self, operation_name: &str) -> OperationProfiler
pub fn start_operation(&mut self, operation_name: &str) -> OperationProfiler
Start profiling a SIMD operation
Sourcepub fn record_time(&mut self, operation: &str, duration: Duration)
pub fn record_time(&mut self, operation: &str, duration: Duration)
Record execution time for an operation
Sourcepub fn record_instructions(&mut self, operation: &str, counts: InstructionCount)
pub fn record_instructions(&mut self, operation: &str, counts: InstructionCount)
Record instruction counts for an operation
Sourcepub fn update_cache_metrics(&mut self, metrics: CacheMetrics)
pub fn update_cache_metrics(&mut self, metrics: CacheMetrics)
Update cache metrics
Sourcepub fn update_vectorization_metrics(&mut self, metrics: VectorizationMetrics)
pub fn update_vectorization_metrics(&mut self, metrics: VectorizationMetrics)
Update vectorization metrics
Sourcepub fn average_time(&self, operation: &str) -> Option<Duration>
pub fn average_time(&self, operation: &str) -> Option<Duration>
Get average execution time for an operation
Sourcepub fn get_statistics(&self, operation: &str) -> Option<OperationStats>
pub fn get_statistics(&self, operation: &str) -> Option<OperationStats>
Get operation statistics
Sourcepub fn analyze_bottlenecks(&self) -> BottleneckAnalysis
pub fn analyze_bottlenecks(&self) -> BottleneckAnalysis
Analyze performance bottlenecks
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate comprehensive performance report
Trait Implementations§
Source§impl Clone for SimdProfiler
impl Clone for SimdProfiler
Source§fn clone(&self) -> SimdProfiler
fn clone(&self) -> SimdProfiler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimdProfiler
impl Debug for SimdProfiler
Auto Trait Implementations§
impl Freeze for SimdProfiler
impl RefUnwindSafe for SimdProfiler
impl Send for SimdProfiler
impl Sync for SimdProfiler
impl Unpin for SimdProfiler
impl UnsafeUnpin for SimdProfiler
impl UnwindSafe for SimdProfiler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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