diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-02-26 23:04:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-02-26 23:04:13 +0000 |
commit | 05159a0c6a27a030c8497c5cf836977090f9e75d (patch) | |
tree | 9ccc167cf3e830e5d01aff4555f99d854cbb623b /src/fileio.c | |
parent | 5313dcb75ac76501f23d21ac94efdbeeabc860bc (diff) | |
download | vim-git-05159a0c6a27a030c8497c5cf836977090f9e75d.tar.gz |
updated for version 7.0052v7.0052
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 064468870..328431a07 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -7925,6 +7925,9 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) long save_cmdbang; #endif static int filechangeshell_busy = FALSE; +#ifdef FEAT_PROFILE + proftime_T wait_time; +#endif /* * Quickly return if there are no autocommands for this event or @@ -8097,6 +8100,11 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) #ifdef FEAT_EVAL save_current_SID = current_SID; +# ifdef FEAT_PROFILE + if (do_profiling) + prof_child_enter(&wait_time); /* doesn't count for the caller itself */ +# endif + /* Don't use local function variables, if called from a function */ save_funccalp = save_funccal(); #endif @@ -8188,6 +8196,10 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) #ifdef FEAT_EVAL current_SID = save_current_SID; restore_funccal(save_funccalp); +# ifdef FEAT_PROFILE + if (do_profiling) + prof_child_exit(&wait_time); +# endif #endif vim_free(fname); vim_free(sfname); |