emscripten-core / emscripten-core/emscripten

Memory Profiler Incorrectly Reporting Data as Free

Open
#21,747 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

**Version of emscripten/emsdk:**
3.1.54

It seems like after a certain point, the memory profiler begins to report allocated memory as "free," despite not actually showing that data as free in the numbered totals. It's possible this might not be a bug. In general, I think better explanations of what's going on with memory here might be needed.

Screenshot 2024-04-11 at 2 52 51 PM

You can see this in action by using this [small app I built](https://wasm-memory-pressure.netlify.app/) ([repo](https://github.com/milky2028/wasm-memory-pressure-test)) to allocate specified chunks of memory in wasm in megabytes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.