diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-18 11:02:27 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-20 16:59:57 -0400 |
commit | fb15cbbaea4ae2b8c75ffa308997f18479135a4f (patch) | |
tree | 42ac2baeee4e2ac71bd7865c398a9a9a46854c2e /src/nvim/profile.c | |
parent | ab1eec10a1906cadeed7f480b0d12505a0fba0ad (diff) | |
download | rneovim-fb15cbbaea4ae2b8c75ffa308997f18479135a4f.tar.gz rneovim-fb15cbbaea4ae2b8c75ffa308997f18479135a4f.tar.bz2 rneovim-fb15cbbaea4ae2b8c75ffa308997f18479135a4f.zip |
startuptime: always enable startuptime
Removes the STARTUPTIME define.
Diffstat (limited to 'src/nvim/profile.c')
-rw-r--r-- | src/nvim/profile.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/profile.c b/src/nvim/profile.c index 45dfab426f..ffc62c3c7e 100644 --- a/src/nvim/profile.c +++ b/src/nvim/profile.c @@ -6,9 +6,7 @@ #include "nvim/os/time.h" #include "nvim/func_attr.h" -#ifdef STARTUPTIME -#include "nvim/vim.h" // for the global `time_fd` -#endif +#include "nvim/globals.h" // for the global `time_fd` (startuptime) #ifdef INCLUDE_GENERATED_DECLARATIONS # include "profile.c.generated.h" @@ -187,8 +185,7 @@ int profile_cmp(proftime_T tm1, proftime_T tm2) FUNC_ATTR_CONST return sgn64((int64_t)(tm2 - tm1)); } -#ifdef STARTUPTIME - +/// globals for use in the startuptime related functionality (time_*). static proftime_T g_start_time; static proftime_T g_prev_time; @@ -282,5 +279,3 @@ void time_msg(const char *mesg, const proftime_T *start) g_prev_time = now; fprintf(time_fd, ": %s\n", mesg); } - -#endif |