mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
@@ -476,3 +476,12 @@ function COMMAND.profactive(flag)
|
|||||||
local active = memory.profactive()
|
local active = memory.profactive()
|
||||||
return "heap profilling is ".. (active and "active" or "deactive")
|
return "heap profilling is ".. (active and "active" or "deactive")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function COMMAND.getenv(name)
|
||||||
|
local value = skynet.getenv(name)
|
||||||
|
return {[name]=tostring(value)}
|
||||||
|
end
|
||||||
|
|
||||||
|
function COMMAND.setenv(name,value)
|
||||||
|
return skynet.setenv(name,value)
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user