summaryrefslogtreecommitdiff
path: root/test/full/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/full/init.lua')
-rw-r--r--test/full/init.lua13
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