MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zmalloc_used_memory

Function zmalloc_used_memory

app/redis-6.2.6/src/zmalloc.c:328–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328size_t zmalloc_used_memory(void) {
329 size_t um;
330 atomicGet(used_memory,um);
331 return um;
332}
333
334void zmalloc_set_oom_handler(void (*oom_handler)(size_t)) {
335 zmalloc_oom_handler = oom_handler;

Callers 15

updateMaxmemoryFunction · 0.85
getMaxmemoryStateFunction · 0.85
overMaxmemoryAfterAllocFunction · 0.85
performEvictionsFunction · 0.85
cronUpdateMemoryStatsFunction · 0.85
serverCronFunction · 0.85
beforeSleepFunction · 0.85
InitServerLastFunction · 0.85
callFunction · 0.85
genRedisInfoStringFunction · 0.85
redisForkFunction · 0.85
rdbSaveInfoAuxFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected