#[repr(align(64))]pub struct CoreStats {
pub messages_processed: AtomicU64,
pub actors_spawned: AtomicU64,
pub mailbox_drops: AtomicU64,
}Expand description
Per-core statistics counters.
#[repr(align(64))] ensures each instance occupies its own cache line,
preventing false sharing when cores update their own stats concurrently.
Fields§
§messages_processed: AtomicU64§actors_spawned: AtomicU64§mailbox_drops: AtomicU64Implementations§
Source§impl CoreStats
impl CoreStats
pub fn new() -> Self
pub fn messages_processed(&self) -> u64
pub fn actors_spawned(&self) -> u64
pub fn mailbox_drops(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CoreStats
impl RefUnwindSafe for CoreStats
impl Send for CoreStats
impl Sync for CoreStats
impl Unpin for CoreStats
impl UnsafeUnpin for CoreStats
impl UnwindSafe for CoreStats
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