pub struct ParallelStats {
pub num_threads: usize,
pub memory_stats: StateMemoryStats,
pub config: ParallelConfig,
pub current_step: usize,
}Expand description
Performance statistics for parallel optimization.
Fields§
§num_threads: usizeNumber of worker threads
memory_stats: StateMemoryStatsMemory usage statistics
config: ParallelConfigParallel configuration
current_step: usizeCurrent optimization step
Implementations§
Source§impl ParallelStats
impl ParallelStats
Sourcepub fn theoretical_speedup(&self, _sequential_time_ms: f64) -> f64
pub fn theoretical_speedup(&self, _sequential_time_ms: f64) -> f64
Calculates theoretical speedup based on workload.
Sourcepub fn optimization_suggestions(&self) -> Vec<String>
pub fn optimization_suggestions(&self) -> Vec<String>
Suggests optimization improvements.
Trait Implementations§
Source§impl Clone for ParallelStats
impl Clone for ParallelStats
Source§fn clone(&self) -> ParallelStats
fn clone(&self) -> ParallelStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParallelStats
impl RefUnwindSafe for ParallelStats
impl Send for ParallelStats
impl Sync for ParallelStats
impl Unpin for ParallelStats
impl UnwindSafe for ParallelStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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