FUNCTION 11_Autocmd() Defined: ~/.vim/plugged/coc.nvim/plugin/coc.vim line 163 Called 2 times Total time: 0.000972 Self time: 0.000154 count total (s) self (s) 2 0.000078 if !get(g:,'coc_workspace_initialized', 0) | return | endif 2 0.000882 0.000064 call coc#rpc#notify('CocAutocmd', a:000) FUNCTION 9() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/api.vim line 75 Called 1 time Total time: 0.000677 Self time: 0.000231 count total (s) self (s) 1 0.000010 let res = [] 4 0.000028 for [key, arglist] in a:calls 3 0.000020 let name = key[5:] 3 0.000004 try 3 0.000556 0.000110 call add(res, call(s:funcs[name], arglist)) catch /.*/ return [res, v:exception] 3 0.000003 endtry 4 0.000014 endfor 1 0.000004 return [res, v:null] FUNCTION coc#rpc#ready() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/rpc.vim line 30 Called 3 times Total time: 0.000115 Self time: 0.000115 count total (s) self (s) 3 0.000086 if empty(s:client) || s:client['running'] == 0 return 0 3 0.000004 endif 3 0.000004 return 1 FUNCTION coc#util#do_autocmd() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/util.vim line 754 Called 1 time Total time: 0.000091 Self time: 0.000091 count total (s) self (s) 1 0.000083 if exists('#User#'.a:name) exe 'doautocmd User '.a:name 1 0.000001 endif FUNCTION 11_SyncAutocmd() Defined: ~/.vim/plugged/coc.nvim/plugin/coc.vim line 168 Called 1 time Total time: 0.027521 Self time: 0.000051 count total (s) self (s) 1 0.000013 if !get(g:,'coc_workspace_initialized', 0) | return | endif 1 0.000004 if get(g:, 'coc_service_initialized', 0) 1 0.027497 0.000027 call coc#rpc#request('CocAutocmd', a:000) else call coc#rpc#notify('CocAutocmd', a:000) 1 0.000001 endif FUNCTION coc#util#set_buf_var() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/util.vim line 906 Called 1 time Total time: 0.000035 Self time: 0.000035 count total (s) self (s) 1 0.000013 if !bufloaded(a:bufnr) | return | endif 1 0.000020 call setbufvar(a:bufnr, a:name, a:val) FUNCTION 14_notify() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/client.vim line 133 Called 2 times Total time: 0.000560 Self time: 0.000537 count total (s) self (s) 2 0.000148 0.000125 let channel = s:get_channel(self) 2 0.000017 if empty(channel) | return '' | endif 2 0.000022 try 2 0.000004 if s:is_vim 2 0.000222 call ch_sendraw(channel, json_encode([0, [a:method, a:args]])."\n") else call call('rpcnotify', [channel, a:method] + a:args) 2 0.000003 endif catch /.*/ if v:exception =~# 'E475' if get(g:, 'coc_vim_leaving', 0) | return | endif echohl Error | echom '['.self.name.'] server connection lost' | echohl None let name = self.name call s:on_exit(name, 0) execute 'silent do User ConnectionLost'.toupper(name[0]).name[1:] elseif v:exception =~# 'E12' " neovim's bug, ignore it else echohl Error | echo 'Error on notify ('.a:method.'): '.v:exception | echohl None endif 2 0.000005 endtry FUNCTION coc#util#clearmatches() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/util.vim line 665 Called 2 times Total time: 0.000187 Self time: 0.000187 count total (s) self (s) 2 0.000059 let winid = get(a:, 1, 0) 2 0.000047 if winid != 0 && win_getid() != winid return 2 0.000003 endif 2 0.000009 for id in a:ids try call matchdelete(id) catch /.*/ " matches have been cleared in other ways, endtry 2 0.000004 endfor 2 0.000013 let exists = get(w:, 'coc_matchids', []) 2 0.000008 if !empty(exists) call filter(w:coc_matchids, 'index(a:ids, v:val) == -1') 2 0.000002 endif FUNCTION coc#api#call() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/api.vim line 577 Called 1 time Total time: 0.000047 Self time: 0.000047 count total (s) self (s) 1 0.000013 let err = v:null 1 0.000003 let res = v:null 1 0.000002 try 1 0.000015 let res = call(s:funcs[a:method], a:args) catch /.*/ let err = v:exception 1 0.000002 endtry 1 0.000004 return [err, res] FUNCTION coc#api#notify() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/api.vim line 588 Called 2 times Total time: 0.000892 Self time: 0.000128 count total (s) self (s) 2 0.000888 0.000124 call call(s:funcs[a:method], a:args) FUNCTION 14_request() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/client.vim line 101 Called 1 time Total time: 0.027389 Self time: 0.026431 count total (s) self (s) 1 0.000053 0.000034 let channel = s:get_channel(self) 1 0.000006 if empty(channel) | return '' | endif 1 0.000001 try 1 0.000002 if s:is_vim 1 0.027220 0.026281 let res = ch_evalexpr(channel, [a:method, a:args], {'timeout': 30000}) 1 0.000029 if type(res) == 1 && res ==# '' throw 'timeout after 30s' 1 0.000002 endif 1 0.000006 let [l:errmsg, res] = res 1 0.000005 if !empty(l:errmsg) throw l:errmsg 1 0.000002 else 1 0.000003 return res endif endif return call('rpcrequest', [channel, a:method] + a:args) catch /.*/ if v:exception =~# 'E475' if get(g:, 'coc_vim_leaving', 0) | return | endif echohl Error | echom '['.self.name.'] server connection lost' | echohl None let name = self.name call s:on_exit(name, 0) execute 'silent do User ConnectionLost'.toupper(name[0]).name[1:] elseif v:exception =~# 'E12' " neovim's bug, ignore it else echohl Error | echo 'Error on request ('.a:method.'): '.v:exception | echohl None endif 1 0.000002 endtry FUNCTION coc#rpc#notify() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/rpc.vim line 98 Called 2 times Total time: 0.000818 Self time: 0.000159 count total (s) self (s) 2 0.000175 0.000076 if !coc#rpc#ready() return '' 2 0.000001 endif 2 0.000626 0.000066 call s:client['notify'](a:method, a:args) 2 0.000005 return '' FUNCTION coc#rpc#request() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/rpc.vim line 91 Called 1 time Total time: 0.027470 Self time: 0.000065 count total (s) self (s) 1 0.000035 0.000019 if !coc#rpc#ready() return '' 1 0.000001 endif 1 0.027431 0.000042 return s:client['request'](a:method, a:args) FUNCTION 14_get_channel() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/client.vim line 94 Called 3 times Total time: 0.000042 Self time: 0.000042 count total (s) self (s) 3 0.000014 if s:is_vim 3 0.000024 return a:client['channel'] endif return a:client['chan_id'] FUNCTION coc#rpc#stop() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/rpc.vim line 59 Called 1 time Total time: 0.000124 Self time: 0.000124 count total (s) self (s) 1 0.000010 if empty(s:client) return 1 0.000001 endif 1 0.000001 try 1 0.000001 if s:is_vim 1 0.000089 call job_stop(ch_getjob(s:client['channel']), 'term') else call jobstop(s:client['chan_id']) 1 0.000001 endif catch /.*/ " ignore 1 0.000002 endtry FUNCTION 13() Defined: ~/.vim/plugged/coc.nvim/autoload/coc/api.vim line 97 Called 4 times Total time: 0.000533 Self time: 0.000220 count total (s) self (s) 4 0.000527 0.000214 return call(a:method, a:args) FUNCTIONS SORTED ON TOTAL TIME count total (s) self (s) function 1 0.027521 0.000051 11_SyncAutocmd() 1 0.027470 0.000065 coc#rpc#request() 1 0.027389 0.026431 14_request() 2 0.000972 0.000154 11_Autocmd() 2 0.000892 0.000128 coc#api#notify() 2 0.000818 0.000159 coc#rpc#notify() 1 0.000677 0.000231 9() 2 0.000560 0.000537 14_notify() 4 0.000533 0.000220 13() 2 0.000187 coc#util#clearmatches() 1 0.000124 coc#rpc#stop() 3 0.000115 coc#rpc#ready() 1 0.000091 coc#util#do_autocmd() 1 0.000047 coc#api#call() 3 0.000042 14_get_channel() 1 0.000035 coc#util#set_buf_var() FUNCTIONS SORTED ON SELF TIME count total (s) self (s) function 1 0.027389 0.026431 14_request() 2 0.000560 0.000537 14_notify() 1 0.000677 0.000231 9() 4 0.000533 0.000220 13() 2 0.000187 coc#util#clearmatches() 2 0.000818 0.000159 coc#rpc#notify() 2 0.000972 0.000154 11_Autocmd() 2 0.000892 0.000128 coc#api#notify() 1 0.000124 coc#rpc#stop() 3 0.000115 coc#rpc#ready() 1 0.000091 coc#util#do_autocmd() 1 0.027470 0.000065 coc#rpc#request() 1 0.027521 0.000051 11_SyncAutocmd() 1 0.000047 coc#api#call() 3 0.000042 14_get_channel() 1 0.000035 coc#util#set_buf_var()