add profile module, and use it in snax

This commit is contained in:
Cloud Wu
2014-04-22 18:27:41 +08:00
parent 387b95026d
commit 960bd23c56
5 changed files with 243 additions and 5 deletions

View File

@@ -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)