malloc hook for jemalloc and c memory info dump

This commit is contained in:
Cloud Wu
2014-04-18 17:38:18 +08:00
parent 5b68dc6a17
commit ac1a0a4c99
8 changed files with 318 additions and 8 deletions

10
service/cmemory.lua Normal file
View File

@@ -0,0 +1,10 @@
local skynet = require "skynet"
local memory = require "memory"
memory.dumpinfo()
memory.dump()
print("Total memory:", memory.total())
print("Total block:", memory.block())
skynet.exit()