Decoded, fail-closed retained-memory ownership report from the WASM store.
- Package
@sheetwrite/core
- Source
packages/core/src/resource-accounting.ts#L58
Members 8
protocolVersion
hashTableEstimateVersion
owners
readonly owners: readonly ResourceOwnerBytesinterface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}interface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}interface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}Retained logical payload and allocated capacity attributed to one exclusive owner.API reference →[];
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 owners: readonly ResourceOwnerBytesinterface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}interface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}interface ResourceOwnerBytes {
readonly owner: string;
readonly logicalBytes: number;
readonly allocatedBytes: number;
readonly entries: number;
readonly measurement:
| "exact-capacity"
| "hash-capacity-v1"
| "typed-array-byte-length"
| "utf16-upper-bound"
| "entry-count-only";
}Retained logical payload and allocated capacity attributed to one exclusive owner.API reference →[]; readonly logicalLiveBytes: number;
readonly allocatedCapacityBytes: number;
readonly wasmCommittedBytes: number | null;
readonly allocatorMarginBytes: number | null;
readonly unaccountedBytes: number;