mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
startuptime: move code to profile.{c,h} + doc
It's a better place to put it. Also slightly documented and reformatted, but not changed.
This commit is contained in:

committed by
Justin M. Keyes

parent
c7eb8c5cd7
commit
a001510382
@@ -6,6 +6,14 @@
|
||||
|
||||
typedef uint64_t proftime_T;
|
||||
|
||||
#ifdef STARTUPTIME
|
||||
#define TIME_MSG(s) do { \
|
||||
if (time_fd != NULL) time_msg(s, NULL); \
|
||||
} while (0)
|
||||
#else
|
||||
#define TIME_MSG(s)
|
||||
#endif
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "profile.h.generated.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user