diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:41:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:41:24 +0800 |
commit | 23eac92eb9e6cb133336f67e104c00b9f200cb5b (patch) | |
tree | 9c1dbf9b144c8c34805123107eccb7956dcd10a3 /script/core/diagnostics | |
parent | 9c6e2784fa796777bed2d4ba17f706d2c6a0bc67 (diff) | |
download | lua-language-server-23eac92eb9e6cb133336f67e104c00b9f200cb5b.zip |
test performance
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r-- | script/core/diagnostics/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua index 82107a2d..5446a7c3 100644 --- a/script/core/diagnostics/init.lua +++ b/script/core/diagnostics/init.lua @@ -59,6 +59,9 @@ local function check(uri, name, results) if passed >= 0.5 then log.warn(('Diagnostics [%s] @ [%s] takes [%.3f] sec!'):format(name, uri, passed)) end + if DIAGTIMES then + DIAGTIMES[name] = (DIAGTIMES[name] or 0) + passed + end end return function (uri, response) |