pub struct PoolStats {
pub allocation_count: usize,
pub allocation_bytes: u64,
pub reserved_bytes: u64,
pub block_count: usize,
pub block_bytes: u64,
pub free_bytes: u64,
pub largest_free_region: u64,
}Expand description
Local pool statistics. No native budget query or host allocation is performed. Free spans describe physical holes; alignment/granularity may prevent their use. Linear holes additionally wait for their stack/ring lifetime to retire. Counts/bytes include pool-owned dedicated allocations and retained empty blocks.
Fields§
§allocation_count: usize§allocation_bytes: u64§reserved_bytes: u64§block_count: usize§block_bytes: u64§free_bytes: u64§largest_free_region: u64Implementations§
Source§impl PoolStats
impl PoolStats
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_block_count(self, value: usize) -> Self
pub fn set_block_count(self, value: usize) -> Self
Set block_count and return the updated record.
Sourcepub fn set_block_bytes(self, value: u64) -> Self
pub fn set_block_bytes(self, value: u64) -> Self
Set block_bytes 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_largest_free_region(self, value: u64) -> Self
pub fn set_largest_free_region(self, value: u64) -> Self
Set largest_free_region and return the updated record.
Trait Implementations§
impl Copy for PoolStats
impl Eq for PoolStats
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Forget for PoolStats
impl Freeze for PoolStats
impl Move for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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