diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-24 12:53:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-24 12:53:53 +0100 |
commit | b204990346ca857802b174afe8a7fbb05e4f318e (patch) | |
tree | 6660d87cac14e978841c1eaf55994bf8a85f84a9 /src/structs.h | |
parent | 7cf0c114d690c91ac88c92a1a6f1b1935cb6410f (diff) | |
download | vim-git-b204990346ca857802b174afe8a7fbb05e4f318e.tar.gz |
patch 8.2.2400: Vim9: compiled functions are not profiledv8.2.2400
Problem: Vim9: compiled functions are not profiled.
Solution: Add initial changes to profile compiled functions. Fix that a
script-local function was hard to debug.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index d6bf6672a..b092b45bb 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1577,7 +1577,7 @@ typedef struct svar_S svar_T; #if defined(FEAT_EVAL) || defined(PROTO) typedef struct funccall_S funccall_T; -// values used for "uf_dfunc_idx" +// values used for "uf_def_status" typedef enum { UF_NOT_COMPILED, UF_TO_BE_COMPILED, @@ -1899,6 +1899,13 @@ typedef struct sn_prl_S } sn_prl_T; # define PRL_ITEM(si, idx) (((sn_prl_T *)(si)->sn_prl_ga.ga_data)[(idx)]) + +typedef struct { + int pi_started_profiling; + proftime_T pi_wait_start; + proftime_T pi_call_start; +} profinfo_T; + # endif #else // dummy typedefs for use in function prototypes |