diff src/fileio.c @ 170:8c60f65311fa v7.0052

updated for version 7.0052
author vimboss
date Sat, 26 Feb 2005 23:04:13 +0000
parents c93c9cad9618
children 84c21eb4fc40
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7925,6 +7925,9 @@ apply_autocmds_group(event, fname, fname
     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
 #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
 #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);