pub struct DetailedStatistics {
pub native_count: usize,
pub native_bytes: u64,
pub allocation_count: usize,
pub allocation_bytes: u64,
pub reserved_bytes: u64,
pub free_range_count: usize,
pub free_bytes: u64,
pub allocation_size_min: Option<u64>,
pub allocation_size_max: Option<u64>,
pub free_range_size_min: Option<u64>,
pub free_range_size_max: Option<u64>,
}Expand description
Detailed local byte/count statistics. Empty populations have None extrema.
Fields§
§native_count: usize§native_bytes: u64§allocation_count: usize§allocation_bytes: u64§reserved_bytes: u64§free_range_count: usize§free_bytes: u64§allocation_size_min: Option<u64>§allocation_size_max: Option<u64>§free_range_size_min: Option<u64>§free_range_size_max: Option<u64>Implementations§
Source§impl DetailedStatistics
impl DetailedStatistics
Sourcepub fn set_native_count(self, value: usize) -> Self
pub fn set_native_count(self, value: usize) -> Self
Set native_count and return the updated record.
Sourcepub fn set_native_bytes(self, value: u64) -> Self
pub fn set_native_bytes(self, value: u64) -> Self
Set native_bytes and return the updated record.
Sourcepub fn set_allocation_count(self, value: usize) -> Self
pub fn set_allocation_count(self, value: usize) -> Self
Set allocation_count and return the updated record.
Sourcepub fn set_allocation_bytes(self, value: u64) -> Self
pub fn set_allocation_bytes(self, value: u64) -> Self
Set allocation_bytes and return the updated record.
Sourcepub fn set_reserved_bytes(self, value: u64) -> Self
pub fn set_reserved_bytes(self, value: u64) -> Self
Set reserved_bytes and return the updated record.
Sourcepub fn set_free_range_count(self, value: usize) -> Self
pub fn set_free_range_count(self, value: usize) -> Self
Set free_range_count and return the updated record.
Sourcepub fn set_free_bytes(self, value: u64) -> Self
pub fn set_free_bytes(self, value: u64) -> Self
Set free_bytes and return the updated record.
Sourcepub fn set_allocation_size_min(self, value: Option<u64>) -> Self
pub fn set_allocation_size_min(self, value: Option<u64>) -> Self
Set allocation_size_min and return the updated record.
Sourcepub fn set_allocation_size_max(self, value: Option<u64>) -> Self
pub fn set_allocation_size_max(self, value: Option<u64>) -> Self
Set allocation_size_max and return the updated record.
Sourcepub fn set_free_range_size_min(self, value: Option<u64>) -> Self
pub fn set_free_range_size_min(self, value: Option<u64>) -> Self
Set free_range_size_min and return the updated record.
Sourcepub fn set_free_range_size_max(self, value: Option<u64>) -> Self
pub fn set_free_range_size_max(self, value: Option<u64>) -> Self
Set free_range_size_max and return the updated record.
Trait Implementations§
Source§impl Clone for DetailedStatistics
impl Clone for DetailedStatistics
impl Copy for DetailedStatistics
Source§impl Debug for DetailedStatistics
impl Debug for DetailedStatistics
Source§impl Default for DetailedStatistics
impl Default for DetailedStatistics
impl Eq for DetailedStatistics
Source§impl PartialEq for DetailedStatistics
impl PartialEq for DetailedStatistics
impl StructuralPartialEq for DetailedStatistics
Auto Trait Implementations§
impl Forget for DetailedStatistics
impl Freeze for DetailedStatistics
impl Move for DetailedStatistics
impl RefUnwindSafe for DetailedStatistics
impl Send for DetailedStatistics
impl Sync for DetailedStatistics
impl Unpin for DetailedStatistics
impl UnsafeUnpin for DetailedStatistics
impl UnwindSafe for DetailedStatistics
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