#[non_exhaustive]pub struct TagRow {
pub class: TagClass,
pub name: Cow<'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 HeapSnapshot, in bytes asked for.
Build it with TagRow::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.class: TagClassWhat the tag names: a phase, a span, an asset kind, or other.
name: Cow<'static, str>Its name: update, the span’s (ai), the asset kind’s (image),
other or overflow.
live_bytes: u64The bytes live under it: allocated, or last grown, under it and not yet freed.
live_blocks: u32The blocks live under it.
allocated_bytes: u64The bytes ever allocated under it: a block grown adds its new size.
peak_bytes: u64The most bytes live under it at once.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagRow
impl<'de> Deserialize<'de> for TagRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TagRow
Source§impl JsonSchema for TagRow
impl JsonSchema for TagRow
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for TagRow
Auto Trait Implementations§
impl Freeze for TagRow
impl RefUnwindSafe for TagRow
impl Send for TagRow
impl Sync for TagRow
impl Unpin for TagRow
impl UnsafeUnpin for TagRow
impl UnwindSafe for TagRow
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