@sheetwrite/corefunction
Construct a zero-owner store report when no WASM store is available.
- Package
@sheetwrite/core- Source
packages/core/src/resource-accounting.ts#L311
Declaration
function emptyStoreMemoryStats( wasmCommittedBytes: number | null,): StoreMemoryBreakdowninterface 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;
}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;
}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;
}Decoded, fail-closed retained-memory ownership report from the WASM store.API reference →