mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
Show memory allocator in INFO output
This commit is contained in:
@ -1319,18 +1319,14 @@ sds genRedisInfoString(char *section) {
|
||||
"used_memory_peak:%zu\r\n"
|
||||
"used_memory_peak_human:%s\r\n"
|
||||
"mem_fragmentation_ratio:%.2f\r\n"
|
||||
"use_tcmalloc:%d\r\n",
|
||||
"mem_allocator:%s\r\n",
|
||||
zmalloc_used_memory(),
|
||||
hmem,
|
||||
zmalloc_get_rss(),
|
||||
server.stat_peak_memory,
|
||||
peak_hmem,
|
||||
zmalloc_get_fragmentation_ratio(),
|
||||
#ifdef USE_TCMALLOC
|
||||
1
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
REDIS_MALLOC
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user