|0.0.4||Dec 20, 2021|
|0.0.3||Jul 28, 2021|
|0.0.2||Jul 14, 2021|
|0.0.1||Jul 10, 2021|
#1614 in Command line utilities
35 downloads per month
vim-profiler is a wrapper around the
(n)vim --startuptime command, written in Rust. The binary is called
vp and has only been tested on a Unix based system.
Here is a quick demo showcasing the main functionality of the program.
You can install
vim-profiler with the rust package manager Cargo:
$ cargo install vim-profiler
vim-profiler 0.0.4 A vim profiling tool. USAGE: vp [FLAGS] [OPTIONS] FLAGS: -h, --help Prints help information -r, --reverse Display the plugin times in reverse order (fastest first) -s, --sys Show system plugins in the output -V, --version Prints version information -v, --verbose Add informative messages during program execution OPTIONS: -c, --command <command> The command to run, e.g vim or neovim [default: vim] -n, --count <count> The number of plugins to list in the output -e, --export <path> Export the results to a CSV file -f, --file <file> A file to open -i, --iter <iter> The number of iterations -p, --plot <path> Plot the data and save it to a SVG file -x, --precision <precision> Precision in the output
This utility allows for exporting results to either in a
.svg file in the form
of a plot or in a
.csv file, where extra statistics are written.
The plot visualizes the start times of each plugin in your plugin directory. If
vp with the
--plot option, you will receive a plot in the form of
an SVG file in the specified path that looks something like:
The CSV file contains various other useful statistics such as:
- The average start time across all iterations
- The median start time across all iterations
- The standard deviation from the mean
If you invoke
vp with the
--export option you will receive a CSV file with
the additional statistics called in the specified path that looks something
The API is heavily inspired by the Python script that goes by the same name vim-profiler.
A few other notable vim profiling tools include: