pub struct PerformanceProfiler {
pub memory_tracker: MemoryTracker,
pub cache_analyzer: CacheAnalyzer,
pub hardware_counters: HardwareCounters,
pub cross_platform_validator: CrossPlatformValidator,
}Expand description
Advanced performance profiler with hardware counter support
Fields§
§memory_tracker: MemoryTracker§cache_analyzer: CacheAnalyzer§hardware_counters: HardwareCounters§cross_platform_validator: CrossPlatformValidatorImplementations§
Source§impl PerformanceProfiler
impl PerformanceProfiler
Sourcepub fn profile<F, R>(&self, name: &str, func: F) -> (R, ProfileResult)where
F: FnOnce() -> R,
pub fn profile<F, R>(&self, name: &str, func: F) -> (R, ProfileResult)where
F: FnOnce() -> R,
Profile a function with comprehensive metrics
Sourcepub fn benchmark_cross_platform<F, R>(
&self,
name: &str,
func: F,
) -> CrossPlatformBenchmarkResult<R>
pub fn benchmark_cross_platform<F, R>( &self, name: &str, func: F, ) -> CrossPlatformBenchmarkResult<R>
Run comprehensive benchmark suite with cross-platform validation
Trait Implementations§
Source§impl Debug for PerformanceProfiler
impl Debug for PerformanceProfiler
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