mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
add profile module, and use it in snax
This commit is contained in:
@@ -6,6 +6,11 @@ local assert = assert
|
||||
local pairs = pairs
|
||||
local pcall = pcall
|
||||
|
||||
local profile = require "profile"
|
||||
|
||||
coroutine.resume = profile.resume
|
||||
coroutine.yield = profile.yield
|
||||
|
||||
local proto = {}
|
||||
local skynet = {
|
||||
-- read skynet.h
|
||||
@@ -476,6 +481,12 @@ end
|
||||
|
||||
----- debug
|
||||
|
||||
local internal_info_func
|
||||
|
||||
function skynet.info_func(func)
|
||||
internal_info_func = func
|
||||
end
|
||||
|
||||
local dbgcmd = {}
|
||||
|
||||
function dbgcmd.MEM()
|
||||
|
||||
Reference in New Issue
Block a user