mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
vim-patch:8.1.1689: profiling code is spread out
Problem: Profiling code is spread out.
Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan,
closes vim/vim#4668)
660a10ad41
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "nvim/api/vimscript.h"
|
||||
#include "nvim/context.h"
|
||||
#include "nvim/eval/encode.h"
|
||||
#include "nvim/eval/userfunc.h"
|
||||
#include "nvim/ex_docmd.h"
|
||||
#include "nvim/option.h"
|
||||
#include "nvim/shada.h"
|
||||
@@ -249,7 +250,7 @@ static inline void ctx_save_funcs(Context *ctx, bool scriptonly)
|
||||
ctx->funcs = (Array)ARRAY_DICT_INIT;
|
||||
Error err = ERROR_INIT;
|
||||
|
||||
HASHTAB_ITER(&func_hashtab, hi, {
|
||||
HASHTAB_ITER(func_tbl_get(), hi, {
|
||||
const char_u *const name = hi->hi_key;
|
||||
bool islambda = (STRNCMP(name, "<lambda>", 8) == 0);
|
||||
bool isscript = (name[0] == K_SPECIAL);
|
||||
|
||||
Reference in New Issue
Block a user