diff options
-rw-r--r-- | server/src/service.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index d6a0daf0..1b77c2a9 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -35,7 +35,7 @@ function mt:_callMethod(name, params) local clock = os.clock() local suc, res = xpcall(f, log.error, self, params) local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('Task [%s] takes [%.3f]sec.'):format(name, passed)) end if suc then @@ -102,7 +102,7 @@ function mt:_doDiagnostic() end end local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('\n\z Diagnostics completion\n\z Cost: [%.3f]sec\n\z @@ -136,7 +136,7 @@ function mt:_buildTextCache() size = size + #obj.text end local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('\n\z Cache completion\n\z Cost: [%.3f]sec\n\z @@ -229,7 +229,7 @@ function mt:on_tick() self:_buildTextCache() self:_doDiagnostic() - if os.clock() - self._clock >= 60 then + if os.clock() - self._clock >= 600 then self._clock = os.clock() local count = 0 for _ in pairs(self._file) do |