Development
Profiling
Launch Vim: vim --startuptime startuptime.log.
Look at log:
144.523 000.106 000.106: sourcing /opt/homebrew/share/vim/vim91/plugin/vimballPlugin.vim
144.697 000.118 000.118: sourcing /opt/homebrew/share/vim/vim91/plugin/zipPlugin.vim
144.699 002.552: loading plugins
144.700 000.001: loading packages
144.723 000.023: loading after plugins
Columns:
144.723- 144 mills from start vim.000.023- time (mills) absolutely.
You can debug and profile particular function or file. Example for profile all functions:
:profile start all_funcs.log
:profile func *
:profile file *
In all_funcs.log you can see execution time for captured functions. Start from end of log file, where placed function names, like TOC.
More details and examples: :help profile