summaryrefslogtreecommitdiff
path: root/server-beta/src/pub/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-20 16:58:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-20 16:58:32 +0800
commit2d98b8822b398923f1417229f129d6d1b141311d (patch)
tree999fdeda9014b2a2983e022a89318211692dad5f /server-beta/src/pub/init.lua
parentd1af80d3e9f9fd863ffdc297639ac2b1b54c5417 (diff)
downloadlua-language-server-2d98b8822b398923f1417229f129d6d1b141311d.zip
简单的体检
Diffstat (limited to 'server-beta/src/pub/init.lua')
-rw-r--r--server-beta/src/pub/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/pub/init.lua b/server-beta/src/pub/init.lua
index f86a42b6..bf188e8d 100644
--- a/server-beta/src/pub/init.lua
+++ b/server-beta/src/pub/init.lua
@@ -4,4 +4,8 @@ pub.on('log', function (params, brave)
log.raw(brave.id, params.level, params.msg, params.src, params.line)
end)
+pub.on('mem', function (count, brave)
+ brave.memory = count
+end)
+
return pub