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:
Nicolas Hillegeer
2014-07-17 12:01:45 +02:00
committed by Justin M. Keyes
parent c7eb8c5cd7
commit a001510382
4 changed files with 134 additions and 93 deletions

View File

@@ -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