aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/profile.h
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-17 12:01:45 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-07-20 16:59:57 -0400
commita0015103820fe2a9df92275561c2d71864cf7eb1 (patch)
tree76c7edba2e2d8138fc5d282969f539649a00d730 /src/nvim/profile.h
parentc7eb8c5cd7efb12a8096418196408a60053ebc62 (diff)
downloadrneovim-a0015103820fe2a9df92275561c2d71864cf7eb1.tar.gz
rneovim-a0015103820fe2a9df92275561c2d71864cf7eb1.tar.bz2
rneovim-a0015103820fe2a9df92275561c2d71864cf7eb1.zip
startuptime: move code to profile.{c,h} + doc
It's a better place to put it. Also slightly documented and reformatted, but not changed.
Diffstat (limited to 'src/nvim/profile.h')
-rw-r--r--src/nvim/profile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/profile.h b/src/nvim/profile.h
index 26d1ebe3a2..bca83ba90d 100644
--- a/src/nvim/profile.h
+++ b/src/nvim/profile.h
@@ -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