ex_cmds2.h
Go to the documentation of this file.
1 #ifndef NVIM_EX_CMDS2_H
2 #define NVIM_EX_CMDS2_H
3 
4 #include <stdbool.h>
5 
6 #include "nvim/ex_docmd.h"
7 #include "nvim/runtime.h"
8 
9 
10 //
11 // flags for check_changed()
12 //
13 #define CCGD_AW 1 // do autowrite if buffer was changed
14 #define CCGD_MULTWIN 2 // check also when several wins for the buf
15 #define CCGD_FORCEIT 4 // ! used
16 #define CCGD_ALLBUF 8 // may write all buffers
17 #define CCGD_EXCMD 16 // may suggest using !
18 
21 typedef struct scriptitem_S {
25  bool sn_prof_on;
26  bool sn_pr_force;
28  int sn_pr_nest;
29  // profiling the script as a whole
35  // profiling the script per line
42 } scriptitem_T;
43 
44 #ifdef INCLUDE_GENERATED_DECLARATIONS
45 # include "ex_cmds2.h.generated.h"
46 #endif
47 #endif // NVIM_EX_CMDS2_H
scriptitem_S::file_id_valid
bool file_id_valid
Definition: ex_cmds2.h:23
scriptitem_S::sn_pr_start
proftime_T sn_pr_start
time at script start
Definition: ex_cmds2.h:33
scriptitem_S::sn_pr_force
bool sn_pr_force
forceit: profile functions in this script
Definition: ex_cmds2.h:26
scriptitem_S::sn_prl_ga
garray_T sn_prl_ga
things stored for every line
Definition: ex_cmds2.h:36
scriptitem_S::sn_prof_on
bool sn_prof_on
true when script is/was profiled
Definition: ex_cmds2.h:25
FileID
Struct which encapsulates inode/dev_id information.
Definition: fs_defs.h:12
scriptitem_S::sn_pr_children
proftime_T sn_pr_children
time in children after script start
Definition: ex_cmds2.h:34
scriptitem_S::sn_pr_total
proftime_T sn_pr_total
time spent in script + children
Definition: ex_cmds2.h:31
scriptitem_S::file_id
FileID file_id
Definition: ex_cmds2.h:24
scriptitem_S::sn_pr_self
proftime_T sn_pr_self
time spent in script itself
Definition: ex_cmds2.h:32
growarray
Definition: garray.h:12
scriptitem_S::sn_prl_idx
linenr_T sn_prl_idx
index of line being timed; -1 if none
Definition: ex_cmds2.h:40
scriptitem_S::sn_prl_wait
proftime_T sn_prl_wait
wait start time for current line
Definition: ex_cmds2.h:39
scriptitem_S::sn_name
char_u * sn_name
Definition: ex_cmds2.h:22
scriptitem_S::sn_pr_count
int sn_pr_count
nr of times sourced
Definition: ex_cmds2.h:30
runtime.h
scriptitem_S::sn_pr_nest
int sn_pr_nest
nesting for sn_pr_child
Definition: ex_cmds2.h:28
scriptitem_S::sn_prl_execed
int sn_prl_execed
line being timed was executed
Definition: ex_cmds2.h:41
proftime_T
uint64_t proftime_T
Definition: profile.h:7
char_u
unsigned char char_u
Definition: types.h:12
scriptitem_S::sn_prl_start
proftime_T sn_prl_start
start time for current line
Definition: ex_cmds2.h:37
ex_docmd.h
scriptitem_S::sn_prl_children
proftime_T sn_prl_children
time spent in children for this line
Definition: ex_cmds2.h:38
scriptitem_S
Definition: ex_cmds2.h:21
scriptitem_S::sn_pr_child
proftime_T sn_pr_child
time set when going into first child
Definition: ex_cmds2.h:27
linenr_T
long linenr_T
Definition: pos.h:7
scriptitem_T
struct scriptitem_S scriptitem_T