From 87c999358cc9009e1cd63721668f2f363fbda051 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sat, 7 Sep 2013 13:21:04 +0000 Subject: [PATCH] add profile method for mode switching --- autoload/airline/debug.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/autoload/airline/debug.vim b/autoload/airline/debug.vim index 89a58791..04d7e59c 100644 --- a/autoload/airline/debug.vim +++ b/autoload/airline/debug.vim @@ -32,3 +32,19 @@ function! airline#debug#profile2() noautocmd qall! endfunction +function! airline#debug#profile3() + profile start airline-profile-mode.log + profile func * + profile file * + + for i in range(1000) + startinsert + redrawstatus + stopinsert + redrawstatus + endfor + + profile pause + noautocmd qall! +endfunction +