pub struct PoolReport {
pub allocated_bytes: usize,
pub peak_bytes: usize,
pub allocation_count: u64,
pub free_count: u64,
pub fragmentation: FragmentationMetrics,
pub histogram: AllocationHistogram,
pub timestamp_ns: u64,
}Expand description
A comprehensive memory pool status report.
Fields§
§allocated_bytes: usizeCurrently allocated bytes.
peak_bytes: usizePeak allocated bytes ever observed.
allocation_count: u64Total number of allocations performed.
free_count: u64Total number of frees performed.
fragmentation: FragmentationMetricsFragmentation metrics at time of report.
histogram: AllocationHistogramAllocation size histogram.
timestamp_ns: u64Timestamp in nanoseconds since UNIX epoch when report was generated.
Trait Implementations§
Source§impl Clone for PoolReport
impl Clone for PoolReport
Source§fn clone(&self) -> PoolReport
fn clone(&self) -> PoolReport
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 PoolReport
impl Debug for PoolReport
Source§impl Default for PoolReport
impl Default for PoolReport
Source§fn default() -> PoolReport
fn default() -> PoolReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PoolReport
impl RefUnwindSafe for PoolReport
impl Send for PoolReport
impl Sync for PoolReport
impl Unpin for PoolReport
impl UnsafeUnpin for PoolReport
impl UnwindSafe for PoolReport
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