mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
debug stat report boot time
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user