From 36ab60b89c5626d67528754b764ba0e7fe2022c7 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 24 Oct 2016 15:58:30 -0700 Subject: [PATCH] added stats.mem_alloc field --- controller/stats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/stats.go b/controller/stats.go index 8ed7f71a..1ca933f4 100644 --- a/controller/stats.go +++ b/controller/stats.go @@ -109,6 +109,7 @@ func (c *Controller) cmdServer(msg *server.Message) (res string, err error) { if points != 0 { avgsz = int(mem.HeapAlloc) / points } + m["mem_alloc"] = mem.Alloc m["heap_size"] = mem.HeapAlloc m["max_heap_size"] = c.config.MaxMemory m["avg_item_size"] = avgsz