diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-20 21:59:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-20 21:59:49 +0000 |
commit | b3656edcb96bd36277db157baec80cb5e7a6f534 (patch) | |
tree | 196eed24afb857886081bbdc690e385715c59cb9 /src/eval.c | |
parent | 9b2200acd6bd572eea00ea89eeb3b2c0764c8942 (diff) | |
download | vim-git-b3656edcb96bd36277db157baec80cb5e7a6f534.tar.gz |
updated for version 7.0230v7.0230
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index bfb9946e3..b1ceb79fa 100644 --- a/src/eval.c +++ b/src/eval.c @@ -19382,7 +19382,7 @@ call_user_func(fp, argcount, argvars, rettv, firstline, lastline, selfdict) } } #ifdef FEAT_PROFILE - if (do_profiling) + if (do_profiling == PROF_YES) { if (!fp->uf_profiling && has_profiling(FALSE, fp->uf_name, NULL)) func_do_profile(fp); @@ -19417,7 +19417,8 @@ call_user_func(fp, argcount, argvars, rettv, firstline, lastline, selfdict) } #ifdef FEAT_PROFILE - if (fp->uf_profiling || (fc.caller != NULL && &fc.caller->func->uf_profiling)) + if (do_profiling == PROF_YES && (fp->uf_profiling + || (fc.caller != NULL && &fc.caller->func->uf_profiling))) { profile_end(&fp->uf_tm_start); profile_sub_wait(&wait_start, &fp->uf_tm_start); @@ -19467,7 +19468,7 @@ call_user_func(fp, argcount, argvars, rettv, firstline, lastline, selfdict) sourcing_lnum = save_sourcing_lnum; current_SID = save_current_SID; #ifdef FEAT_PROFILE - if (do_profiling) + if (do_profiling == PROF_YES) script_prof_restore(&wait_start); #endif @@ -19710,7 +19711,7 @@ get_func_line(c, cookie, indent) fcp->dbg_tick = debug_tick; } #ifdef FEAT_PROFILE - if (do_profiling) + if (do_profiling == PROF_YES) func_line_end(cookie); #endif @@ -19731,7 +19732,7 @@ get_func_line(c, cookie, indent) retval = vim_strsave(((char_u **)(gap->ga_data))[fcp->linenr++]); sourcing_lnum = fcp->linenr; #ifdef FEAT_PROFILE - if (do_profiling) + if (do_profiling == PROF_YES) func_line_start(cookie); #endif } |