mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
perf: track some additional cputimes
This commit is contained in:
parent
46997de1c9
commit
d992387912
3 changed files with 49 additions and 16 deletions
|
@ -36,10 +36,11 @@ function M.setup(spec, opts)
|
|||
-- load module cache before anything else
|
||||
require("lazy.core.cache").setup(opts)
|
||||
|
||||
require("lazy.stats").track("LazyStart")
|
||||
|
||||
local Util = require("lazy.core.util")
|
||||
local Config = require("lazy.core.config")
|
||||
local Loader = require("lazy.core.loader")
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
|
||||
Util.track({ plugin = "lazy.nvim" }) -- setup start
|
||||
Util.track("module", vim.loop.hrtime() - start)
|
||||
|
@ -64,6 +65,7 @@ function M.setup(spec, opts)
|
|||
|
||||
-- all done!
|
||||
vim.cmd("do User LazyDone")
|
||||
require("lazy.stats").track("LazyDone")
|
||||
end
|
||||
|
||||
function M.stats()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue