vim profiling

When vim performance going down…

start vim

:profile start ~/vim-profile.log
:profile func *
:profile file *

make things which slow vim down…

after this go back to normal mode and

:profile pause

and exit from vim

Finally

cat ~/vim-profile.log | grep -A11 'FUNCTIONS SORTED ON TOTAL TIME'

and you get result:

FUNCTIONS SORTED ON TOTAL TIME
count  total (s)   self (s)  function
    2   0.001054   0.000319  gitgutter#process_buffer()
    4   0.000743             airline#check_mode()
    2   0.000735   0.000136  gitgutter#utility#is_active()
Publikováno v Vim