summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-30 18:28:03 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-30 18:28:03 +0200
commitad6480961080f80a455b2394f27b02935a2ded52 (patch)
treed857cca5de9f29740f9604310272e88f2ea0ef1b /src/structs.h
parent668324ef4fd59980dc57b2eefe57eddc57c7b920 (diff)
patch 8.1.0130: ":profdel func" does not work if func was called alreadyv8.1.0130
Problem: ":profdel func" does not work if func was called already. (Dominique Pelle) Solution: Reset uf_profiling and add a flag to indicate initialization was done.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index a2de2441e9..ec109eb893 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1345,6 +1345,7 @@ typedef struct
garray_T uf_lines; /* function lines */
#ifdef FEAT_PROFILE
int uf_profiling; /* TRUE when func is being profiled */
+ int uf_prof_initialized;
/* profiling the function as a whole */
int uf_tm_count; /* nr of calls */
proftime_T uf_tm_total; /* time spent in function + children */