Skip to content

Commit

Permalink
make magit#utils#start_profile usable
Browse files Browse the repository at this point in the history
previous setting should work, but in practive, log file are almost
empty.
Now, we will face very big log files, but with (hopefully) intersting
traces.
  • Loading branch information
jreybert committed Oct 12, 2018
1 parent 39b9aa6 commit b3345ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions autoload/magit/utils.vim
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@ endfunction

function! magit#utils#start_profile(...)
let prof_file = ( a:0 == 1 ) ? a:1 : "/tmp/vimagit.log"
profdel *
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 file *
profile func *
profile continue
endfunction

0 comments on commit b3345ef

Please sign in to comment.