Profiling startup time

This commit is contained in:
Marco Hinz 2016-01-05 13:47:05 +01:00
parent 4bdd035770
commit b1d511e08c

View File

@ -12,6 +12,7 @@
#### [Debugging](#debugging-1) #### [Debugging](#debugging-1)
- [General tips](#general-tips) - [General tips](#general-tips)
- [Profiling startup time](#profiling-startup-time)
#### [List of colorschemes](#list-of-colorschemes-1) #### [List of colorschemes](#list-of-colorschemes-1)
@ -155,6 +156,18 @@ the active upper half. Move the `:finish` to the middle of _that_ half.
Otherwise the issue is in the inactive lower half. Move the `:finish` to the Otherwise the issue is in the inactive lower half. Move the `:finish` to the
middle of _that_ half. And so on. middle of _that_ half. And so on.
#### Profiling startup time
Vim startup feels slow? Time to crunch some numbers:
```
vim --startuptime /tmp/startup.log +q && vim /tmp/startup.log
```
The first column is the most important as it shows the elapsed absolute time. If
there is a big jump in time between two lines, the second line is either a very
big file or a file with faulty VimL code that is worth investigating.
## List of colorschemes ## List of colorschemes
Here's a list of commonly used colorschemes: Here's a list of commonly used colorschemes: