pub struct ChessEngineProfiler { /* private fields */ }Expand description
Performance monitoring for specific chess engine operations
Implementations§
Source§impl ChessEngineProfiler
impl ChessEngineProfiler
Sourcepub fn record_search(
&self,
nodes: u64,
positions: u64,
cache_hits: u64,
cache_misses: u64,
)
pub fn record_search( &self, nodes: u64, positions: u64, cache_hits: u64, cache_misses: u64, )
Record search metrics
Sourcepub fn record_evaluation(&self, eval_type: &str)
pub fn record_evaluation(&self, eval_type: &str)
Record evaluation metrics
Sourcepub fn time_search<F, R>(&self, operation: &str, f: F) -> Rwhere
F: FnOnce() -> R,
pub fn time_search<F, R>(&self, operation: &str, f: F) -> Rwhere
F: FnOnce() -> R,
Time a search operation
Sourcepub fn time_evaluation<F, R>(&self, operation: &str, f: F) -> Rwhere
F: FnOnce() -> R,
pub fn time_evaluation<F, R>(&self, operation: &str, f: F) -> Rwhere
F: FnOnce() -> R,
Time an evaluation operation
Sourcepub fn get_chess_metrics(&self) -> ChessMetrics
pub fn get_chess_metrics(&self) -> ChessMetrics
Get chess-specific performance metrics
Sourcepub fn generate_chess_report(&self) -> ChessEngineReport
pub fn generate_chess_report(&self) -> ChessEngineReport
Generate comprehensive chess engine report
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChessEngineProfiler
impl RefUnwindSafe for ChessEngineProfiler
impl Send for ChessEngineProfiler
impl Sync for ChessEngineProfiler
impl Unpin for ChessEngineProfiler
impl UnwindSafe for ChessEngineProfiler
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> 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