mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat(profiling): merge VeryLazy stats and show startuptime in profile view
This commit is contained in:
parent
cea5920abb
commit
0f2786bcc9
3 changed files with 9 additions and 2 deletions
|
@ -75,7 +75,9 @@ function M:_add(event)
|
|||
end
|
||||
-- HACK: work-around for https://github.com/neovim/neovim/issues/25526
|
||||
done = true
|
||||
Util.track({ [self.type] = event.id })
|
||||
if event.id ~= "VeryLazy" then
|
||||
Util.track({ [self.type] = event.id })
|
||||
end
|
||||
|
||||
local state = M.get_state(ev.event, ev.buf, ev.data)
|
||||
|
||||
|
@ -86,7 +88,9 @@ function M:_add(event)
|
|||
for _, s in ipairs(state) do
|
||||
M.trigger(s)
|
||||
end
|
||||
Util.track()
|
||||
if event.id ~= "VeryLazy" then
|
||||
Util.track()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue