pub struct BuddyStats {
pub allocations: AtomicU64,
pub deallocations: AtomicU64,
pub allocated_bytes: AtomicUsize,
pub peak_allocated_bytes: AtomicUsize,
pub splits: AtomicU64,
pub merges: AtomicU64,
pub failed_allocations: AtomicU64,
}๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Expand description
Statistics for the buddy allocator
Fieldsยง
ยงallocations: AtomicU64๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Total allocations
deallocations: AtomicU64๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Total deallocations
allocated_bytes: AtomicUsize๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Current allocated bytes
peak_allocated_bytes: AtomicUsize๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Peak allocated bytes
splits: AtomicU64๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Number of splits
merges: AtomicU64๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Number of merges
failed_allocations: AtomicU64๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Failed allocations
Implementationsยง
Sourceยงimpl BuddyStats
impl BuddyStats
pub fn new() -> Self
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
pub fn record_allocation(&self, size: usize)
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
pub fn record_deallocation(&self, size: usize)
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
pub fn record_split(&self)
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
pub fn record_merge(&self)
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
pub fn record_failed_allocation(&self)
๐Deprecated since 0.2.0: Use jemalloc feature instead. See buddy_allocator module docs for migration.
Trait Implementationsยง
Sourceยงimpl Debug for BuddyStats
impl Debug for BuddyStats
Sourceยงimpl Default for BuddyStats
impl Default for BuddyStats
Sourceยงfn default() -> BuddyStats
fn default() -> BuddyStats
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl !Freeze for BuddyStats
impl RefUnwindSafe for BuddyStats
impl Send for BuddyStats
impl Sync for BuddyStats
impl Unpin for BuddyStats
impl UnwindSafe for BuddyStats
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more