dstein64 / vim-startuptime

A plugin for profiling Vim and Neovim startup time.
MIT License
585 stars 11 forks source link

Feature Request: Allow to open a preexisting log file #19

Closed ecerulm closed 7 months ago

ecerulm commented 7 months ago

I have a preexisting file vim.log that I obtained with vim --startuptime vim.log xxxxx.txt

I would like to :StartupTime vim.log to get the visualization of that file.

Rationale: My vim sometimes is very slow to startup. Sometimes not always, and I have been able to reproduce with vim --startuptime vim.log xxx.txt but not with :StartupTime alone. Hence I would like to be able to open the vim.log file that I generated and analyze it.

dstein64 commented 7 months ago

Hi @ecerulm. I added an --input-file option for specifying a file that was generated by running (n)vim with the --startuptime argument.

:StartupTime --input-file /path/to/startuptime/file
bassamsdata commented 7 months ago

this is an amazing feature, thank you