t-troebst / perfanno.nvim

NeoVim lua plugin that annotates source code with profiling information from perf or other profilers
MIT License
206 stars 4 forks source link

Lua profile dump/load #7

Closed jedrzejboczar closed 1 year ago

jedrzejboczar commented 1 year ago

It is sometimes handy to store profiling results for later. This PR adds commands that allow to store the LuaJIT profiling results as a simple JSON file.

t-troebst commented 1 year ago

Sorry that I'm so late to this. I've wanted to add some generic caching mechanism already - not just because the Lua profiling traces are lost but also because perf can be quite slow on a long profiling run. I've finally gotten around to adding this feature.