mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00

Problem: Profiling code is spread out.
Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan,
closes vim/vim#4668)
660a10ad41
19 lines
334 B
C
19 lines
334 B
C
#ifndef NVIM_PROFILE_H
|
|
#define NVIM_PROFILE_H
|
|
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
|
|
#include "nvim/ex_cmds_defs.h"
|
|
#include "nvim/runtime.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
|