-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Lua-aware startup time profiler #15
Comments
Note that this is slightly different (and easier?) than #4 (or tjdevries/nlua.nvim#1), which is about a general-purpose run-time Lua profiler. |
Norcallis WIP solution works, if one calls it for the current file (it wraps all One could use parts of the profiler by charlesmallah for a more pretty output. It would be relative easy to adapt in the absence of Maybe this should be reformulated to something like "fix all lua setup functions to be user-defined with I dont see how to make this work easily between vimscript and lua (to put into neovim core), when you can have many places to look where to start and stop profiling the startup... |
Per some ideas discussed with @akinsho, I've made a prototype of a feature for |
Just wanted to add that the profiler in use {
'plugin',
config = function() require 'plugin' end
} |
Also, neovim/neovim#14788 will include Lua files sourced from (It still doesn't list modules |
I don't think neovim/neovim#14788 could be called lua profiler. As it only profiles when a lua file is sourced . There are many other wqys to load a lua module ( @clason if you're in mood of closing close #3 . We have too many statuslines :P |
Yeah, that's why I did not write "closes this issue" ;) But I think we are close to feature parity with vimscript For the record, a general Lua profiler is a separate wish: #4
I still haven't moved away from lightline (waiting for expressline, hint hint ;)), but that's a fair point :) |
i need something like this but it can run on CI and create an image profile |
What?
The existing common startup time profilers https://github.com/dstein64/vim-startuptime and https://github.com/tweekmonster/startuptime.vim do not report timing information for Lua files. This would be helpful to have.
Why?
Startup timing information that includes Lua files in the time breakdown is useful for tuning one's configuration.
Potential existing implementations:
Building off of one of the common startup time profilers could be useful.
Potential pitfalls:
This seems like it may require changes to Neovim's built-in startup time profiling, to ensure that Lua files are included in the output. I think that the common profiling plugins just parse this output, so it's plausible that simply augmenting the output would allow them to include Lua timing without modification.
The text was updated successfully, but these errors were encountered: