mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
The page loop (raea-runtime-dom's host step) never asked JavaScriptCore to release what it had freed, so the app window's JS memory (WebKit Malloc) grew 272 to 448 MB over an hour of use while the live heap stayed ~60 MB. Upkeep (raea-runtime-jsengine) releases it every RAEA_JSC_RELEASE_S (5; 0 never), as raea-runtime-react's thread already did: the same window then held 166 MB flat. RAEA_INSPECT=1: every RAEA_JS_HEAP_S (30) a full collection, then one JSON line of the heap's numbers in ~/.raea/logs/js-heap-<pid>-<n>.jsonl (JavaScriptCore's JSGetMemoryUsageStatistics, QuickJS's memory usage), so what a page keeps can be read over a session on any engine; and on JavaScriptCore the context is inspectable from Safari's Develop menu. Off by default (the collection stops the page's thread for 6-13 ms).