#[non_exhaustive]pub struct TagCounts {
pub tag: u16,
pub class: u8,
pub name: &'static str,
pub live_bytes: u64,
pub live_blocks: u32,
pub allocated_bytes: u64,
pub peak_bytes: u64,
}Expand description
One memory tag’s counts in a CountingAlloc::with_tags
(CountingAlloc::rows), in bytes asked for. Build it with
TagCounts::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tag: u16The tag (tags::tag).
class: u8Its name’s class, as tags::tag was given it;
tags::OTHER_CLASS for other and overflow.
name: &'static strIts name: other for tag 0, overflow for tag 255.
live_bytes: u64The bytes live under it.
live_blocks: u32The blocks live under it.
allocated_bytes: u64The bytes ever allocated under it: a realloc adds its new size
(a machine word: on a 32-bit target it wraps past 4 GiB).
peak_bytes: u64The most bytes live under it at once.
Implementations§
Trait Implementations§
impl Copy for TagCounts
impl Eq for TagCounts
impl StructuralPartialEq for TagCounts
Auto Trait Implementations§
impl Freeze for TagCounts
impl RefUnwindSafe for TagCounts
impl Send for TagCounts
impl Sync for TagCounts
impl Unpin for TagCounts
impl UnsafeUnpin for TagCounts
impl UnwindSafe for TagCounts
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