pub struct MemoryAllocations {Show 21 fields
pub current_generation: Option<u64>,
pub manager_layout_version: u8,
pub bucket_size_pages: u16,
pub bucket_size_bytes: u64,
pub bucket_capacity: u32,
pub allocated_buckets: u16,
pub remaining_buckets: u32,
pub maximum_bucket_bytes: u64,
pub physical_extent: MemoryExtent,
pub virtual_extent: MemoryExtent,
pub manager_metadata_bytes: u64,
pub manager_header_bytes: u64,
pub manager_bucket_table_bytes: u64,
pub manager_padding_bytes: u64,
pub allocated_bucket_bytes: u64,
pub bucket_slack_bytes: u64,
pub known_binding_bytes: u64,
pub unknown_binding_bytes: u64,
pub unmanaged_bytes: u64,
pub metadata_bytes_read: u64,
pub memories: Vec<MemoryAllocation>,
}Expand description
Physical allocation accounting for the entire default memory runtime.
The ledger is already included in totals. Virtual extent is addressable memory, not live payload. Unknown bindings still own physical allocations.
Fields§
§current_generation: Option<u64>Committed runtime generation, absent before allocation bootstrap.
manager_layout_version: u8Validated manager layout version.
bucket_size_pages: u16Actual persisted bucket size in Wasm pages.
bucket_size_bytes: u64Actual persisted bucket size in bytes.
bucket_capacity: u32Total bucket-table capacity shared by all slots.
allocated_buckets: u16Number of assigned buckets.
remaining_buckets: u32Remaining bucket-table entries.
maximum_bucket_bytes: u64Table capacity in bytes, excluding metadata and backing limits.
physical_extent: MemoryExtentEntire backing extent, including manager metadata and residuals.
virtual_extent: MemoryExtentSum of addressable virtual extents.
manager_metadata_bytes: u64Complete manager metadata page, including padding.
manager_header_bytes: u64Manager header bytes.
manager_bucket_table_bytes: u64Manager bucket-table bytes.
manager_padding_bytes: u64Padding inside the manager metadata page.
allocated_bucket_bytes: u64Sum of bytes assigned to all slots, including the ledger.
bucket_slack_bytes: u64Assigned bucket bytes beyond virtual extents.
known_binding_bytes: u64Assigned bytes with a current binding, including the ledger.
unknown_binding_bytes: u64Assigned bytes without a current binding; not free space.
unmanaged_bytes: u64Backing bytes outside the manager’s assigned region.
metadata_bytes_read: u64Metadata bytes read by the bounded collector.
memories: Vec<MemoryAllocation>All 255 usable slots in ID order, including zero-size slots.