diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-30 18:28:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-30 18:28:03 +0200 |
commit | ad6480961080f80a455b2394f27b02935a2ded52 (patch) | |
tree | d857cca5de9f29740f9604310272e88f2ea0ef1b /src/structs.h | |
parent | 668324ef4fd59980dc57b2eefe57eddc57c7b920 (diff) | |
download | vim-git-ad6480961080f80a455b2394f27b02935a2ded52.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index a2de2441e..ec109eb89 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 */ |