From b3345ef85b46a901b27c551d56135ea362e4b1f9 Mon Sep 17 00:00:00 2001 From: Jerome Reybert Date: Fri, 12 Oct 2018 13:14:37 +0200 Subject: [PATCH] make magit#utils#start_profile usable 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. --- autoload/magit/utils.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/magit/utils.vim b/autoload/magit/utils.vim index c631bb6..223d7da 100644 --- a/autoload/magit/utils.vim +++ b/autoload/magit/utils.vim @@ -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