tjdevries / nlua.nvim

Lua Development for Neovim
MIT License
262 stars 21 forks source link

Lua profiler for nvim #1

Closed clason closed 3 months ago

clason commented 4 years ago

One useful addition to a nvim-lua standard library would be a profiler (since the vim prof func * can't trace into lua). I've played a bit with the debug.sethook based approach, either using https://stackoverflow.com/questions/15725744/easy-lua-profiling or https://github.com/charlesmallah/lua-profiler.

Both kinda work, but it'd be nice to have something more nvim-aware (and prettier) :)

There's also https://blast.hk/moonloader/luajit/ext_profiler.html, but I couldn't get this to work properly.

matu3ba commented 2 years ago

Can you update the issue regarding what is missing from your merged PR to plenary? :)