pub struct MemoryReport {Show 24 fields
pub objects: ArenaReport,
pub shapes: ArenaReport,
pub strings: ArenaReport,
pub symbols: ArenaReport,
pub bigints: ArenaReport,
pub cells: ArenaReport,
pub functions: ArenaReport,
pub bytecode: ArenaReport,
pub internals: ArenaReport,
pub values: ValueHeapReport,
pub rope_bytes: usize,
pub atoms: usize,
pub pinned_atoms: usize,
pub code: CodeReport,
pub register_capacity: usize,
pub register_high_water: usize,
pub ic_entries: usize,
pub ic_free: usize,
pub gc: GcStats,
pub allocated_since_gc: usize,
pub threshold: usize,
pub budget: usize,
pub table_bytes: usize,
pub cap: usize,
}Expand description
A runtime’s memory, part by part.
Fields§
§objects: ArenaReport§shapes: ArenaReport§strings: ArenaReport§symbols: ArenaReport§bigints: ArenaReport§cells: ArenaReport§functions: ArenaReport§bytecode: ArenaReport§internals: ArenaReport§values: ValueHeapReport§rope_bytes: usizeBytes of flattened ropes (the strings arena counts a rope as empty).
atoms: usizeInterned strings.
pinned_atoms: usizeAtoms that live as long as the heap.
code: CodeReport§register_capacity: usizeRegisters the register file has room for.
register_high_water: usizeRegisters made addressable so far: the file never shrinks, so this is its high-water mark.
ic_entries: usizeInline-cache entries, held or free.
ic_free: usizeEntries no unit holds, reused by the next units published.
gc: GcStats§allocated_since_gc: usizeNominal bytes allocated since the last collection, and the count at which the next one runs.
threshold: usize§budget: usizeThe reserved-bytes budget the last collection set.
table_bytes: usizeBytes of the tables beside the arenas: the ropes’ halves, the atom table and the inline caches.
cap: usizeThe heap cap in bytes; usize::MAX for none.
Implementations§
Source§impl MemoryReport
impl MemoryReport
Sourcepub fn arenas(&self) -> [(&'static str, &ArenaReport); 9]
pub fn arenas(&self) -> [(&'static str, &ArenaReport); 9]
The arenas by name, in report order.
Sourcepub fn reserved_bytes(&self) -> usize
pub fn reserved_bytes(&self) -> usize
Bytes reserved on the heap: what the cap compares against.
Trait Implementations§
Source§impl Clone for MemoryReport
impl Clone for MemoryReport
Source§fn clone(&self) -> MemoryReport
fn clone(&self) -> MemoryReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more