diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-20 17:04:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-20 17:04:49 +0800 |
commit | 91ca41b7b5856bc472cdd10c6a0e77800e8b40cf (patch) | |
tree | 529ae186a0671ba3772b0c110b67ad6774e123a6 /server-beta | |
parent | 2d98b8822b398923f1417229f129d6d1b141311d (diff) | |
download | lua-language-server-91ca41b7b5856bc472cdd10c6a0e77800e8b40cf.zip |
分代模式,请
Diffstat (limited to 'server-beta')
-rw-r--r-- | server-beta/main.lua | 2 | ||||
-rw-r--r-- | server-beta/src/pub/pub.lua | 2 | ||||
-rw-r--r-- | server-beta/src/service/service.lua | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/server-beta/main.lua b/server-beta/main.lua index 3352714d..83077681 100644 --- a/server-beta/main.lua +++ b/server-beta/main.lua @@ -5,7 +5,7 @@ local fs = require 'bee.filesystem' ROOT = fs.current_path() / rootPath LANG = LANG or 'en-US' -collectgarbage('generational') +collectgarbage 'generational' log = require 'log' log.init(ROOT, ROOT / 'log' / 'service.log') diff --git a/server-beta/src/pub/pub.lua b/server-beta/src/pub/pub.lua index ac4c779c..692d7837 100644 --- a/server-beta/src/pub/pub.lua +++ b/server-beta/src/pub/pub.lua @@ -9,6 +9,8 @@ local braveTemplate = [[ package.path = %q package.cpath = %q +collectgarbage 'generational' + log = require 'brave.log' local brave = require 'brave' brave.register(%d) diff --git a/server-beta/src/service/service.lua b/server-beta/src/service/service.lua index fb7200b8..2c576a72 100644 --- a/server-beta/src/service/service.lua +++ b/server-beta/src/service/service.lua @@ -29,6 +29,7 @@ end function m.report() local t = timer.loop(60.0, function () local lines = {} + lines[#lines+1] = '' lines[#lines+1] = '========= Medical Examination Report =========' lines[#lines+1] = m.reportMemory() lines[#lines+1] = '==============================================' |