mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Created How to profile vim-gitgutter (markdown)
12
How-to-profile-vim-gitgutter.md
Normal file
12
How-to-profile-vim-gitgutter.md
Normal file
@@ -0,0 +1,12 @@
|
||||
The best way to identify bottlenecks is to profile Vim (see `:help profiler`).
|
||||
|
||||
Add these two lines to your vimrc, ensuring you put them above any package manager such as pathogen or vundle. (The second line assumes your copy of vim-gitgutter lives in a directory named `vim-gitgutter`; adjust as needed.)
|
||||
|
||||
```viml
|
||||
profile start gitgutter.log
|
||||
profile! file */vim-gitgutter/*
|
||||
```
|
||||
|
||||
Now launch Vim and do whatever makes it slow. When you quit Vim it will write the log file in the current directory.
|
||||
|
||||
Please post the log file in a gist and send me a link.
|
||||
Reference in New Issue
Block a user