feat(profiling): merge VeryLazy stats and show startuptime in profile view

This commit is contained in:
Folke Lemaitre 2024-07-04 15:17:02 +02:00
commit 0f2786bcc9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 9 additions and 2 deletions

View file

@ -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