Skip to content
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

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

Closed
ecerulm opened this issue Feb 9, 2024 · 2 comments
Closed

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

ecerulm opened this issue Feb 9, 2024 · 2 comments

Comments

@ecerulm
Copy link

ecerulm commented Feb 9, 2024

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 added a commit that referenced this issue Feb 10, 2024
TODO: documentation
@dstein64
Copy link
Owner

dstein64 commented Feb 11, 2024

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
Copy link

this is an amazing feature, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants