committed by
GitHub
parent
02fdc262eb
commit
b712b82b0c
@@ -28,7 +28,7 @@ function M.fn(fname)
|
||||
end
|
||||
running[fname_real] = true
|
||||
|
||||
local ps = log.profile_start("find file %s", fname_real)
|
||||
local profile = log.profile_start("find file %s", fname_real)
|
||||
|
||||
-- we cannot wait for watchers
|
||||
reload.refresh_nodes_for_path(vim.fn.fnamemodify(fname_real, ":h"))
|
||||
@@ -71,7 +71,7 @@ function M.fn(fname)
|
||||
|
||||
running[fname_real] = false
|
||||
|
||||
log.profile_end(ps, "find file %s", fname_real)
|
||||
log.profile_end(profile)
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
@@ -56,9 +56,9 @@ end
|
||||
|
||||
local function add_profiling_to(f)
|
||||
return function(foldername, should_open_view)
|
||||
local ps = log.profile_start("change dir %s", foldername)
|
||||
local profile = log.profile_start("change dir %s", foldername)
|
||||
f(foldername, should_open_view)
|
||||
log.profile_end(ps, "change dir %s", foldername)
|
||||
log.profile_end(profile)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user