mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
add profile module, and use it in snax
This commit is contained in:
@@ -24,6 +24,13 @@ end
|
||||
|
||||
]]))
|
||||
print(ps.post.hello())
|
||||
|
||||
local info = skynet.call(ps.handle, "debug", "INFO")
|
||||
|
||||
for name,v in pairs(info) do
|
||||
print(string.format("%s\tcount:%d time:%f", name, v.count, v.time))
|
||||
end
|
||||
|
||||
print(snax.kill(ps,"exit"))
|
||||
skynet.exit()
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user