Complete retained-resource and boundary snapshot for one operation phase.
Members 8
schemaVersion
operation
phase
wasm
jsOwners
boundary
runtime
totals
readonly totals: { readonly logicalLiveBytes: number; readonly allocatedCapacityBytes: number; };
Declaration
View full TypeScript declaration
export interface RuntimeResourceSnapshot {
readonly logicalLiveBytes: number;
readonly allocatedCapacityBytes: number;
Referenced by
Workspace packages depending on @sheetwrite/core
@sheetwrite/benchdependency
@sheetwrite/docs-startdependency
@sheetwrite/reactdependency
@sheetwrite/sveltedependency
@sheetwrite/vuedependency
@sheetwrite/xlsxdependency
Public exports naming RuntimeResourceSnapshot
2;2;2;Stable protocol for runtime ownership and operation-cost reports.API reference →type RuntimeResourceOperation =
| "startup"
| "scroll"
| "ingest"
| "edit"
| "dirty-clear"
| "formula-recompute"
| "auto-fit"
| "export"
| "snapshot"
| "persistence"
| "teardown";type RuntimeResourceOperation =
| "startup"
| "scroll"
| "ingest"
| "edit"
| "dirty-clear"
| "formula-recompute"
| "auto-fit"
| "export"
| "snapshot"
| "persistence"
| "teardown";type RuntimeResourceOperation =
| "startup"
| "scroll"
| "ingest"
| "edit"
| "dirty-clear"
| "formula-recompute"
| "auto-fit"
| "export"
| "snapshot"
| "persistence"
| "teardown";User-visible operation whose retained and transient resource costs are measured.API reference →type RuntimeResourcePhase =
"before" | "peak" | "settled" | "after-destroy";type RuntimeResourcePhase =
"before" | "peak" | "settled" | "after-destroy";type RuntimeResourcePhase =
| "before"
| "peak"
| "settled"
| "after-destroy";Measurement point within one resource-accounted operation.API reference →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;
}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 →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";
}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 →interface BoundaryOperationStats {
readonly operation: RuntimeResourceOperation;
readonly ffiCalls: number;
readonly jsToWasmBytes: number;
readonly wasmToJsBytes: number;
readonly largestTransferBytes: number;
readonly bulkCalls: number;
readonly scalarCalls: number;
}interface BoundaryOperationStats {
readonly operation: RuntimeResourceOperation;
readonly ffiCalls: number;
readonly jsToWasmBytes: number;
readonly wasmToJsBytes: number;
readonly largestTransferBytes: number;
readonly bulkCalls: number;
readonly scalarCalls: number;
}interface BoundaryOperationStats {
readonly operation: RuntimeResourceOperation;
readonly ffiCalls: number;
readonly jsToWasmBytes: number;
readonly wasmToJsBytes: number;
readonly largestTransferBytes: number;
readonly bulkCalls: number;
readonly scalarCalls: number;
}Fixed-cardinality boundary crossing counters for one operation.API reference →interface RuntimeMemoryObservation {
readonly usedJSHeapSize: number | null;
readonly arrayBufferBytes: number | null;
readonly externalBytes: number | null;
readonly browserBackingStoreBytes: number | null;
}interface RuntimeMemoryObservation {
readonly usedJSHeapSize: number | null;
readonly arrayBufferBytes: number | null;
readonly externalBytes: number | null;
readonly browserBackingStoreBytes: number | null;
}interface RuntimeMemoryObservation {
readonly usedJSHeapSize:
number | null;
readonly arrayBufferBytes:
number | null;
readonly externalBytes:
number | null;
readonly browserBackingStoreBytes:
number | null;
}Available runtime-level memory observations, kept separate from retained owner totals.API reference →