Skip to content
Sheetwrite

Sheetwrite / Documentation

StoreMemoryBreakdown@sheetwrite/core

Decoded, fail-closed retained-memory ownership report from the WASM store.

Decoded, fail-closed retained-memory ownership report from the WASM store.

Members 8

protocolVersion
readonly protocolVersion: typeof STORE_MEMORY_PROTOCOL_VERSION;
hashTableEstimateVersion
readonly hashTableEstimateVersion: typeof STORE_MEMORY_HASH_ESTIMATE_VERSION;
owners
readonly owners: readonly ResourceOwnerBytes[];
logicalLiveBytes
readonly logicalLiveBytes: number;
allocatedCapacityBytes
readonly allocatedCapacityBytes: number;
wasmCommittedBytes Linear-memory pages are a runtime observation and are never summed into live payload.
readonly wasmCommittedBytes: number | null;
allocatorMarginBytes Allocator internals are intentionally not fabricated from sizeofval.
readonly allocatorMarginBytes: number | null;

Allocator internals are intentionally not fabricated from `size_of_val`.

unaccountedBytes
readonly unaccountedBytes: number;

Declaration

View full TypeScript declaration
export interface StoreMemoryBreakdown {
readonly protocolVersion: typeof STORE_MEMORY_PROTOCOL_VERSION;
readonly hashTableEstimateVersion: typeof STORE_MEMORY_HASH_ESTIMATE_VERSION;
readonly owners: readonly ResourceOwnerBytes[];
readonly logicalLiveBytes: number;
readonly allocatedCapacityBytes: number;
readonly wasmCommittedBytes: number | null;
readonly allocatorMarginBytes: number | null;
readonly unaccountedBytes: number;
}