Open jsProj opened 2 weeks ago
I looked into enabling better memory accounting, but there's a bug in Emscripten which prevents us from using Emscripten's malloc_usable_size
function; quickjs hard-codes this to 0 in Emscripten environments, and Emscripten STRICT=1 mode appears to disable injectable memory.
Work-in-progress PR here: #207
How would I go about getting memory accurate readings? When doing
I get the result of
Not to mention the
memory_used_size
, before any contexts other than the system context, scales with the allowedmalloc_limit
.