MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / emmalloc_unclaimed_heap_memory

Function emmalloc_unclaimed_heap_memory

system/lib/emmalloc.c:1431–1433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429}
1430
1431size_t emmalloc_unclaimed_heap_memory(void) {
1432 return emscripten_get_heap_max() - (size_t)_sbrk64(0);
1433}

Callers 1

mainFunction · 0.85

Calls 2

emscripten_get_heap_maxFunction · 0.85
_sbrk64Function · 0.85

Tested by 1

mainFunction · 0.68