Skip to main content

Program to output sorted summary of vim plugin startup times

Project description

VIM PLUGINS PROFILER

PyPi AUR

vim-plugins-profiler is a small utility which outputs a sorted list of vim editor plugin startup times in millisec. Only vim plugins you have installed personally in your home directory are considered. This utility was written for Linux platforms but should work on other platforms as well, including Mac and Windows.

The latest version and documentation is available at https://github.com/bulletmark/vim-plugins-profiler.

Just run at command line, e.g.:

$ 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
  • The plugin startup times are in millisec, sorted from highest usage to lowest.
  • The percentages are the percent of total plugin startup time (i.e. the total plugin time additional to normal vim startup time) that each plugin contributes.

You should also be able to use it with neovim:

$ vim-plugins-profiler -e nvim

USAGE

Type vim-plugins-profiler -h to view the usage summary:

usage: vim-plugins-profiler [-h] [-e EXE] [-r RUNS] [-n NUM]

Output sorted summary of VIM plugin startup times in millisecs.

options:
  -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

INSTALLATION

NOTE: Arch Linux users can just install vim-plugins-profiler from the AUR.

Python 3.6 or later is required. Note vim-plugins-profiler is on PyPI so just ensure that pipx is installed then type the following:

$ pipx install vim-plugins-profiler

To upgrade:

$ pipx upgrade vim-plugins-profiler

LICENSE

Copyright (C) 2018 Mark Blakeney. This program is distributed under the terms of the GNU General Public License. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at https://www.gnu.org/licenses/ for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vim_plugins_profiler-1.17.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vim_plugins_profiler-1.17-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file vim_plugins_profiler-1.17.tar.gz.

File metadata

  • Download URL: vim_plugins_profiler-1.17.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.18

File hashes

Hashes for vim_plugins_profiler-1.17.tar.gz
Algorithm Hash digest
SHA256 ca04bb018bdd9c3ee108e358dba2003b4148445a17f63c572b4e325840f36ecb
MD5 d6428585e18a206e699a5172e32f4dc9
BLAKE2b-256 f01dc9e7afdce5e42fd5606434c66e2ea4be2a32fcf6cb235738cc24df6b7d4a

See more details on using hashes here.

File details

Details for the file vim_plugins_profiler-1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for vim_plugins_profiler-1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 fc65cd5076fa8c7c8883b7f7b1eb6439f03e79e0781d0cc695c3ef49bb00a9cb
MD5 bce50c6b35134e886964dc1f3c4e93cd
BLAKE2b-256 64b691cd138daba916d8aa9c71d9faf298fa4aa485fc202a97858a69a3afd23a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page