debug stat report boot time

This commit is contained in:
云风
2013-12-17 11:24:30 +08:00
parent b6f57aee0b
commit 2bf65084cd
3 changed files with 44 additions and 5 deletions

View File

@@ -509,6 +509,7 @@ function dbgcmd.STAT()
local stat = {}
query_state(stat, "count")
query_state(stat, "time")
stat.boottime = debug.getregistry().skynet_boottime
skynet.ret(skynet.pack(stat))
end