mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00

Problem: Profiling functionality is spread out.
Solution: Put profiling functionality in profiling.c. (Yegappan Lakshmanan,
closes vim/vim#4666)
fa55cfc69d
Move proftime_T to types.h for now to avoid recursive #include.
18 lines
308 B
C
18 lines
308 B
C
#ifndef NVIM_PROFILE_H
|
|
#define NVIM_PROFILE_H
|
|
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
|
|
#include "nvim/ex_cmds_defs.h"
|
|
|
|
#define TIME_MSG(s) do { \
|
|
if (time_fd != NULL) time_msg(s, NULL); \
|
|
} while (0)
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "profile.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_PROFILE_H
|