分析函式與指令稿的效能
:profile
範例
一般模式 0 / 2命令列模式 1 / 2一般模式 2 / 2分析函式與指令稿的效能。
效能分析器
- v:profiling
0- 輸出目的地
無
指令已輸入。按 Enter 執行。
效能分析器
- v:profiling
0- 輸出目的地
無
啟動剖析器並選擇輸出路徑。尚未選擇或測量任何函數。輸出在退出、profile stop 或 profile dump 時寫入。
效能分析器
- v:profiling
1- 輸出目的地
recall.profile- 已選取的函式/腳本
尚未選取;使用 profile func/file 選擇要分析的項目。
操作前後
操作前
效能分析器
- v:profiling
0- 輸出目的地
無
操作後
效能分析器
- v:profiling
1- 輸出目的地
recall.profile- 已選取的函式/腳本
尚未選取;使用 profile func/file 選擇要分析的項目。
主題::profile。依 Vim 文件示範。此例假設+profile、可寫入的測試檔目錄,以及一個無先前剖析指令或保留函數/檔案選擇器的全新 Vim 工作階段。未用 Vim 重播驗證。啟動剖析器並選擇輸出路徑。尚未選擇或測量任何函數。輸出在退出、profile stop 或 profile dump 時寫入。
function! Work()
return 7
endfunction游標位於第 1 行,第 1 欄