From fb15cbbaea4ae2b8c75ffa308997f18479135a4f Mon Sep 17 00:00:00 2001 From: Nicolas Hillegeer Date: Fri, 18 Jul 2014 11:02:27 +0200 Subject: startuptime: always enable startuptime Removes the STARTUPTIME define. --- src/nvim/profile.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/nvim/profile.c') 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 -- cgit