added stats.mem_alloc field

This commit is contained in:
Josh Baker 2016-10-24 15:58:30 -07:00
parent bb2bb451b2
commit 36ab60b89c
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ func (c *Controller) cmdServer(msg *server.Message) (res string, err error) {
if points != 0 { if points != 0 {
avgsz = int(mem.HeapAlloc) / points avgsz = int(mem.HeapAlloc) / points
} }
m["mem_alloc"] = mem.Alloc
m["heap_size"] = mem.HeapAlloc m["heap_size"] = mem.HeapAlloc
m["max_heap_size"] = c.config.MaxMemory m["max_heap_size"] = c.config.MaxMemory
m["avg_item_size"] = avgsz m["avg_item_size"] = avgsz