diff options
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index ea3c4488..01d3424d 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -434,6 +434,9 @@ function mt:compileVM(uri) local ast = self:compileAst(obj) local version = obj.version obj.astCost = os.clock() - clock + if obj.astCost > 0.1 then + log.warn(('Compile[%s] takes [%.3f] sec, size [%.3f]kb'):format(uri, obj.astCost, #obj.text)) + end obj.oldText = nil self:_clearChainNode(obj, uri) |