fix(#1961): harden profiling functions (#1986)

This commit is contained in:
Alexander Courtis
2023-02-11 17:05:01 +11:00
committed by GitHub
parent 02fdc262eb
commit b712b82b0c
11 changed files with 44 additions and 46 deletions

View File

@@ -238,8 +238,7 @@ function M.open(options)
return
end
local pn = string.format "view open"
local ps = log.profile_start(pn)
local profile = log.profile_start "view open"
create_buffer()
open_window()
@@ -251,7 +250,7 @@ function M.open(options)
end
events._dispatch_on_tree_open()
log.profile_end(ps, pn)
log.profile_end(profile)
end
local function grow()