mirror of https://github.com/tidwall/tile38.git
added stats.mem_alloc field
This commit is contained in:
parent
bb2bb451b2
commit
36ab60b89c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue