nx.js
NamespacesSwitchInterfaces

MemoryUsage

Memory usage statistics from the QuickJS JavaScript engine.

See

memoryUsage

Properties

PropertyTypeDescription
arrayCountnumberNumber of JS arrays.
atomCountnumberNumber of interned atoms (identifiers/strings).
atomSizenumberTotal bytes used by atoms.
binaryObjectCountnumberNumber of binary (ArrayBuffer/SharedArrayBuffer) objects.
binaryObjectSizenumberTotal bytes used by binary objects.
cFuncCountnumberNumber of C functions registered in the engine.
fastArrayCountnumberNumber of fast (dense) arrays.
fastArrayElementsnumberTotal number of elements in fast arrays.
jsFuncCodeSizenumberTotal bytes of JS function bytecode.
jsFuncCountnumberNumber of JS functions.
jsFuncPc2lineCountnumberNumber of pc-to-line debug entries.
jsFuncPc2lineSizenumberTotal bytes used by pc-to-line debug data.
jsFuncSizenumberTotal bytes used by JS functions.
mallocCountnumberNumber of active malloc allocations.
mallocLimitnumberMaximum malloc allocation limit (0 = unlimited).
mallocSizenumberTotal bytes allocated by the JS engine's malloc.
memoryUsedCountnumberNumber of memory usage entries tracked internally.
memoryUsedSizenumberTotal memory used by the JS engine, including internal bookkeeping.
objCountnumberNumber of JS objects.
objSizenumberTotal bytes used by objects.
propCountnumberNumber of object properties.
propSizenumberTotal bytes used by properties.
shapeCountnumberNumber of object shapes.
shapeSizenumberTotal bytes used by shapes.
strCountnumberNumber of JS strings.
strSizenumberTotal bytes used by strings.

On this page