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

@@ -90,7 +90,7 @@ function M.update()
return
end
utils.debounce("diagnostics", M.debounce_delay, function()
local ps = log.profile_start "diagnostics update"
local profile = log.profile_start "diagnostics update"
log.line("diagnostics", "update")
local buffer_severity
@@ -130,7 +130,7 @@ function M.update()
end
end
end
log.profile_end(ps, "diagnostics update")
log.profile_end(profile)
end)
end