diff options
author | AlexCai2019 <89138532+AlexCai2019@users.noreply.github.com> | 2022-05-08 01:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 01:43:28 +0800 |
commit | 0fd83c4ca9f82a02becab6c304a8a7de75098507 (patch) | |
tree | be9790d9d4823fe728c5b36e94093fe5f42b7725 /test/full/init.lua | |
parent | 89203efad8c9b5513e05ca4d5696107924865b10 (diff) | |
parent | 67b4c574849d1667e0ecb39c51aeed8e30b43056 (diff) | |
download | lua-language-server-0fd83c4ca9f82a02becab6c304a8a7de75098507.zip |
Merge branch 'sumneko:master' into master
Diffstat (limited to 'test/full/init.lua')
-rw-r--r-- | test/full/init.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/full/init.lua b/test/full/init.lua index e83a7d6d..3b1d2fe2 100644 --- a/test/full/init.lua +++ b/test/full/init.lua @@ -27,8 +27,17 @@ require 'full.dirty' require 'full.projects' require 'full.self' +local times = {} for name, time in util.sortPairs(DIAGTIMES, function (k1, k2) - return DIAGTIMES[k1] < DIAGTIMES[k2] + return DIAGTIMES[k1] > DIAGTIMES[k2] end) do - print('诊断任务耗时:', name, time) + times[#times+1] = ('诊断任务耗时:%05.3f [%s]'):format(time, name) + if #times >= 10 then + break + end +end + +util.revertTable(times) +for _, time in ipairs(times) do + print(time) end |