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

Function mspace_inspect_all

system/lib/dlmalloc.c:5951–5967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5949
5950#if MALLOC_INSPECT_ALL
5951void mspace_inspect_all(mspace msp,
5952 void(*handler)(void *start,
5953 void *end,
5954 size_t used_bytes,
5955 void* callback_arg),
5956 void* arg) {
5957 mstate ms = (mstate)msp;
5958 if (ok_magic(ms)) {
5959 if (!PREACTION(ms)) {
5960 internal_inspect_all(ms, handler, arg);
5961 POSTACTION(ms);
5962 }
5963 }
5964 else {
5965 USAGE_ERROR_ACTION(ms,ms);
5966 }
5967}
5968#endif /* MALLOC_INSPECT_ALL */
5969
5970int mspace_trim(mspace msp, size_t pad) {

Callers

nothing calls this directly

Calls 1

internal_inspect_allFunction · 0.85

Tested by

no test coverage detected