pub(crate) struct OreFeatureStats {Show 22 fields
started_at: Instant,
config_size: i32,
candidate_positions: u64,
unique_positions: u64,
write_allowed_positions: u64,
target_reads: u64,
neighbor_reads: u64,
section_read_attempts: u64,
section_write_attempts: u64,
section_read_contentions: u64,
section_write_contentions: u64,
chunk_cache_misses: u64,
chunk_status_upgrades: u64,
writes: u64,
candidate_time: Duration,
batch_apply_time: Duration,
read_time: Duration,
write_time: Duration,
read_contention_wait_time: Duration,
write_contention_wait_time: Duration,
read_sections: FxHashSet<(i32, i32, usize)>,
write_sections: FxHashSet<(i32, i32, usize)>,
}Fields§
§started_at: Instant§config_size: i32§candidate_positions: u64§unique_positions: u64§write_allowed_positions: u64§target_reads: u64§neighbor_reads: u64§section_read_attempts: u64§section_write_attempts: u64§section_read_contentions: u64§section_write_contentions: u64§chunk_cache_misses: u64§chunk_status_upgrades: u64§writes: u64§candidate_time: Duration§batch_apply_time: Duration§read_time: Duration§write_time: Duration§read_contention_wait_time: Duration§write_contention_wait_time: Duration§read_sections: FxHashSet<(i32, i32, usize)>§write_sections: FxHashSet<(i32, i32, usize)>Implementations§
Source§impl OreFeatureStats
impl OreFeatureStats
fn new(config_size: i32) -> Self
pub(crate) const fn record_candidate_position(&mut self)
pub(crate) const fn record_unique_position(&mut self)
pub(crate) const fn record_write_allowed_position(&mut self)
pub(crate) const fn record_write_allowed_positions(&mut self, count: u64)
pub(crate) const fn record_target_read(&mut self)
pub(crate) const fn record_neighbor_read(&mut self)
pub(crate) fn record_section_read_attempt( &mut self, chunk_x: i32, chunk_z: i32, section: usize, )
pub(crate) const fn record_section_read_contention(&mut self)
pub(crate) fn record_section_write_attempt( &mut self, chunk_x: i32, chunk_z: i32, section: usize, )
pub(crate) const fn record_section_write_contention(&mut self)
pub(crate) const fn record_chunk_cache_miss(&mut self)
pub(crate) const fn record_chunk_status_upgrade(&mut self)
pub(crate) const fn record_write(&mut self)
pub(crate) fn record_candidate_time(&mut self, elapsed: Duration)
pub(crate) fn record_batch_apply_time(&mut self, elapsed: Duration)
pub(crate) fn record_read_time(&mut self, elapsed: Duration)
pub(crate) fn record_write_time(&mut self, elapsed: Duration)
pub(crate) fn record_read_contention_wait_time(&mut self, elapsed: Duration)
pub(crate) fn record_write_contention_wait_time(&mut self, elapsed: Duration)
Auto Trait Implementations§
impl Freeze for OreFeatureStats
impl RefUnwindSafe for OreFeatureStats
impl Send for OreFeatureStats
impl Sync for OreFeatureStats
impl Unpin for OreFeatureStats
impl UnsafeUnpin for OreFeatureStats
impl UnwindSafe for OreFeatureStats
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreWraps this value in an
Arc<SyncMutex<>>