Provide percentage of memory peak used info.

This commit is contained in:
antirez
2016-09-16 10:43:19 +02:00
parent 309c2bcd1b
commit d9325ac6c8
3 changed files with 13 additions and 1 deletions

View File

@ -772,6 +772,7 @@ typedef struct redisOpArray {
/* This structure is returned by the getMemoryOverheadData() function in
* order to return memory overhead information. */
struct redisMemOverhead {
size_t peak_allocated;
size_t total_allocated;
size_t startup_allocated;
size_t repl_backlog;
@ -781,6 +782,7 @@ struct redisMemOverhead {
size_t overhead_total;
size_t dataset;
float dataset_perc;
float peak_perc;
size_t num_dbs;
struct {
size_t dbid;