Vim Recall繁體中文

End profiling a function or script

:profdel

Example

Normal 0 / 2

End profiling a function or script.

Profiler

Session
started: recall.profile
Selected function
Work
Selected script
none
Before & after

Before

Profiler

Session
started: recall.profile
Selected function
Work
Selected script
none

After

Profiler

Session
still active: recall.profile
Selected function
none
Selected script
none

Subject: :profdel. Documentation-backed illustration; assumes +profile; prior :profile start recall.profile and :profile func Work; not replay-verified. Removes the Work function profiling selection; the profiling session itself stays active. No timing values are invented.

Sample buffer
function! Work()
  return 7
endfunction
Cursor on line 1, column 1
Details & Vim help

End profiling a function or script. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :profd[el] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.