程序输出vim插件启动时间的排序摘要
vim-plugins-profiler的Python项目详细描述
VIM插件分析器
vim-plugins-profiler 是一个小实用程序,它以毫秒为单位输出vim editor插件启动时间的排序列表。只有VIM 您个人在主目录中安装的插件是 考虑过的。这个实用程序是为linux平台编写的,但是应该可以工作 在其他平台上,包括Mac和Windows。
最新版本和文档可在 https://github.com/bulletmark/vim-plugins-profiler。
使用量
只需在命令行运行,例如:
$ vim-plugins-profiler
1: 16.759 (54.4%) nerdtree
2: 4.248 (13.8%) vim-airline
3: 2.880 ( 9.3%) delimitMate
4: 2.000 ( 6.5%) tabular
5: 1.596 ( 5.2%) emmet-vim
6: 1.579 ( 5.1%) YouCompleteMe
7: 0.668 ( 2.2%) ctrlp.vim
8: 0.399 ( 1.3%) vim-surround
9: 0.271 ( 0.9%) vim-better-whitespace
10: 0.155 ( 0.5%) vim-commentary
11: 0.141 ( 0.5%) autoload_cscope.vim
12: 0.080 ( 0.3%) ag.vim
13: 0.034 ( 0.1%) vim-javascript
14: 0.015 ( 0.0%) typescript-vim
15: 0.010 ( 0.0%) vim-vue
- 插件启动时间以毫秒为单位,从最高使用率到 最低的。
- 百分比是插件启动总时间的百分比 (即正常VIM启动时间之外的总插件时间) 每个插件都有贡献。
可选参数
usage: vim-plugins-profiler [-h] [-e EXE] [-r RUNS] [-n NUM]
Output sorted summary of VIM plugin startup times in millisecs.
optional arguments:
-h, --help show this help message and exit
-e EXE, --exe EXE vim executable name or path, default="vim"
-r RUNS, --runs RUNS number of sample runs to average over, default=4
-n NUM, --num NUM limit output to given number of plugins
安装
usage: vim-plugins-profiler [-h] [-e EXE] [-r RUNS] [-n NUM]
Output sorted summary of VIM plugin startup times in millisecs.
optional arguments:
-h, --help show this help message and exit
-e EXE, --exe EXE vim executable name or path, default="vim"
-r RUNS, --runs RUNS number of sample runs to average over, default=4
-n NUM, --num NUM limit output to given number of plugins
注意:arch linux用户只需安装 vim-plugins-profiler from the AUR。
需要Python3.5或更高版本。注意vim-plugins-profiler is on
PyPI以便您可以sudo pip install vim-plugins-profiler
或:
git clone https://github.com/bulletmark/vim-plugins-profiler
cd vim-plugins-profiler
sudo make install
不需要配置。
升级
cd vim-plugins-profiler # Source dir, as above
git pull
sudo make install
移除
cd vim-plugins-profiler # Source dir, as above
sudo make uninstall
许可证
版权所有(c)2018 Mark Blakeney。这个程序在 GNU通用公共许可条款。此程序是免费软件: 您可以根据GNU的条款重新分配和/或修改它 自由软件基金会发布的通用公共许可证, 许可证的版本3或任何更高版本。 这个程序的发布是希望它会有用,但是 没有任何保证;甚至没有 适销性或适合某一特定目的的适销性。见GNU将军 有关详细信息,请访问https://www.gnu.org/licenses/上的公共许可证。