MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zmalloc_used_memory

Function zmalloc_used_memory

src/zmalloc.cpp:340–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340size_t zmalloc_used_memory(void) {
341 size_t um;
342 atomicGet(used_memory,um);
343 return um;
344}
345
346void zmalloc_set_oom_handler(void (*oom_handler)(size_t)) {
347 zmalloc_oom_handler = oom_handler;

Callers 15

getMaxmemoryStateFunction · 0.85
addEntryMethod · 0.85
overMaxmemoryAfterAllocFunction · 0.85
performEvictionsFunction · 0.85
zmalloc_get_rssFunction · 0.85
zmalloc_testFunction · 0.85
rdbSaveInfoAuxFieldsFunction · 0.85
rdbSaveThreadFunction · 0.85
rdbSaveBackgroundFunction · 0.85
loadingProgressFunction · 0.85
getMemoryOverheadDataFunction · 0.85
cronUpdateMemoryStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected