MemoryUsage
Memory usage statistics from the QuickJS JavaScript engine.
See
Properties
| Property | Type | Description |
|---|---|---|
arrayCount | number | Number of JS arrays. |
atomCount | number | Number of interned atoms (identifiers/strings). |
atomSize | number | Total bytes used by atoms. |
binaryObjectCount | number | Number of binary (ArrayBuffer/SharedArrayBuffer) objects. |
binaryObjectSize | number | Total bytes used by binary objects. |
cFuncCount | number | Number of C functions registered in the engine. |
fastArrayCount | number | Number of fast (dense) arrays. |
fastArrayElements | number | Total number of elements in fast arrays. |
jsFuncCodeSize | number | Total bytes of JS function bytecode. |
jsFuncCount | number | Number of JS functions. |
jsFuncPc2lineCount | number | Number of pc-to-line debug entries. |
jsFuncPc2lineSize | number | Total bytes used by pc-to-line debug data. |
jsFuncSize | number | Total bytes used by JS functions. |
mallocCount | number | Number of active malloc allocations. |
mallocLimit | number | Maximum malloc allocation limit (0 = unlimited). |
mallocSize | number | Total bytes allocated by the JS engine's malloc. |
memoryUsedCount | number | Number of memory usage entries tracked internally. |
memoryUsedSize | number | Total memory used by the JS engine, including internal bookkeeping. |
objCount | number | Number of JS objects. |
objSize | number | Total bytes used by objects. |
propCount | number | Number of object properties. |
propSize | number | Total bytes used by properties. |
shapeCount | number | Number of object shapes. |
shapeSize | number | Total bytes used by shapes. |
strCount | number | Number of JS strings. |
strSize | number | Total bytes used by strings. |