From 588bf76650d6d645403e70437c649e7759430c05 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 14 Apr 2015 17:44:47 +0200 Subject: Add ":profile dump" Currently the logfile (":profile start {logfile}") only gets written when Vim exits. This new command allows to dump the log immediately without exiting. --- src/nvim/ex_cmds2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 2d8307ee06..46bd8685d9 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -773,6 +773,8 @@ void ex_profile(exarg_T *eap) profile_set_wait(profile_add(profile_get_wait(), pause_time)); } do_profiling = PROF_YES; + } else if (STRCMP(eap->arg, "dump") == 0) { + profile_dump(); } else { /* The rest is similar to ":breakadd". */ ex_breakadd(eap); @@ -821,6 +823,7 @@ static char *pexpand_cmds[] = { "continue", "func", "file", + "dump", NULL }; -- cgit