Skip to content
Snippets Groups Projects
Commit c6a2044a authored by Jerome Reybert's avatar Jerome Reybert
Browse files

autoload/magit/utils.vim: add magit#utils#start_profile function

parent 73a5fbcb
No related branches found
No related tags found
No related merge requests found
...@@ -173,3 +173,13 @@ endfunction ...@@ -173,3 +173,13 @@ endfunction
function! magit#utils#bufnr() function! magit#utils#bufnr()
return s:bufnr return s:bufnr
endfunction endfunction
function! magit#utils#start_profile(...)
let prof_file = ( a:0 == 1 ) ? a:1 : "/tmp/vimagit.log"
execute "profile start " . prof_file . " | profile pause"
profile! file */plugin/magit.vim
profile! file */autoload/magit/*
profile! file */common/magit_common.vim
profile! file */syntax/magit.vim
profile continue
endfunction
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment