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
parent cea5920abb
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

@ -21,6 +21,7 @@ M.C = nil
function M.on_ui_enter()
M._stats.startuptime = M.track("UIEnter")
require("lazy.core.util").track({ start = "startuptime" }, M._stats.startuptime * 1e6)
vim.api.nvim_exec_autocmds("User", { pattern = "LazyVimStarted", modeline = false })
end