diff --git a/lua/tests/manual/large_search.lua b/lua/tests/manual/large_search.lua index 6bc4c8f..5930963 100644 --- a/lua/tests/manual/large_search.lua +++ b/lua/tests/manual/large_search.lua @@ -3,6 +3,8 @@ RELOAD('telescope') require('telescope') +local profiler = require('plenary.profile.lua_profiler') + local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local previewers = require('telescope.previewers') @@ -14,6 +16,8 @@ vim.api.nvim_buf_set_lines(PERF_DEBUG, 0, -1, false, {}) local cwd = vim.fn.expand("~/plugins/telescope.nvim") +profiler.start() + pickers.new { prompt = 'Large search', finder = finders.new_oneshot_job( @@ -31,9 +35,11 @@ pickers.new { COMPLETED = false --- print(vim.wait(3000, function() --- vim.cmd [[redraw!]] --- return COMPLETED --- end, 100)) +print(vim.wait(3000, function() + vim.cmd [[redraw!]] + return COMPLETED +end, 100)) +profiler.stop() +profiler.report('/home/tj/tmp/profiler_score.txt') -- vim.cmd [[bd!]] -- vim.cmd [[stopinsert]]