mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
malloc hook for jemalloc and c memory info dump
This commit is contained in:
10
service/cmemory.lua
Normal file
10
service/cmemory.lua
Normal 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()
|
||||
Reference in New Issue
Block a user