You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
329 B
Lua

local skynet = require "skynet"
local memory = require "skynet.memory"
memory.dumpinfo()
--memory.dump()
local info = memory.info()
for k,v in pairs(info) do
print(string.format(":%08x %gK",k,v/1024))
end
print("Total memory:", memory.total())
print("Total block:", memory.block())
skynet.start(function() skynet.exit() end)