From 26ad20aa2b3df395fe480d87818bb2c8d24390eb Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 25 Aug 2016 11:55:13 +0800 Subject: [PATCH] debug cmem print total memory used --- service/debug_console.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/debug_console.lua b/service/debug_console.lua index 976e35b5..b5854e51 100644 --- a/service/debug_console.lua +++ b/service/debug_console.lua @@ -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