pub struct MemorySnapshot {
pub active_timers: u64,
pub active_tasks: u64,
pub channel_depth: u64,
pub messages_processed: u64,
pub peak_memory_bytes: u64,
}Expand description
A snapshot of memory usage metrics at a point in time.
Fields§
§active_timers: u64Number of currently active timers
active_tasks: u64Number of currently active async tasks
channel_depth: u64Current message channel buffer depth
messages_processed: u64Total number of messages processed since startup
peak_memory_bytes: u64Peak memory usage recorded in bytes
Trait Implementations§
Source§impl Clone for MemorySnapshot
impl Clone for MemorySnapshot
Source§fn clone(&self) -> MemorySnapshot
fn clone(&self) -> MemorySnapshot
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 moreSource§impl Debug for MemorySnapshot
impl Debug for MemorySnapshot
Auto Trait Implementations§
impl Freeze for MemorySnapshot
impl RefUnwindSafe for MemorySnapshot
impl Send for MemorySnapshot
impl Sync for MemorySnapshot
impl Unpin for MemorySnapshot
impl UnwindSafe for MemorySnapshot
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