diff options
Diffstat (limited to 'src/lsp.lua')
-rw-r--r-- | src/lsp.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lsp.lua b/src/lsp.lua index 0f84671b..6c801a33 100644 --- a/src/lsp.lua +++ b/src/lsp.lua @@ -59,7 +59,10 @@ function mt:_readAsContent(header) local id = res.id local method = res.method local params = res.params + log.debug(('执行任务[%s],ID[%s]'):format(method, id)) + local clock = os.clock() local response, err = self:_callback(method, params) + log.debug(('任务[%s]执行完毕,耗时[%.3f]秒,ID[%s]'):format(method, os.clock() - clock, id)) if response then self:_send { id = id, |