debug cmem print total memory used

This commit is contained in:
Cloud Wu
2016-08-25 11:55:13 +08:00
parent 283c3f10fe
commit 26ad20aa2b

View File

@@ -286,6 +286,9 @@ function COMMAND.cmem()
for k,v in pairs(info) do
tmp[skynet.address(k)] = v
end
tmp.total = memory.total()
tmp.block = memory.block()
return tmp
end