Show memory allocator in INFO output

This commit is contained in:
Pieter Noordhuis
2011-04-27 13:35:49 +02:00
parent edf23aff0e
commit 32f99c5128
2 changed files with 9 additions and 7 deletions

View File

@ -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
);
}