All Projects → tweekmonster → Startuptime.vim

tweekmonster / Startuptime.vim

Licence: mit
Breakdown Vim's --startuptime output

Projects that are alternatives of or similar to Startuptime.vim

Vim Gutentags
A Vim plugin that manages your tag files
Stars: ✭ 1,977 (+998.33%)
Mutual labels:  vim-plugins
Vim Operator User
Vim plugin: Define your own operator easily
Stars: ✭ 161 (-10.56%)
Mutual labels:  vim-plugins
Tracy
C++ frame profiler
Stars: ✭ 3,115 (+1630.56%)
Mutual labels:  profiler
Vim Ruby
Vim/Ruby Configuration Files
Stars: ✭ 1,885 (+947.22%)
Mutual labels:  vim-plugins
Phalcon Debugbar
A powerful debug and profilers tool for the Phalcon Framework
Stars: ✭ 159 (-11.67%)
Mutual labels:  profiler
Memory Profiler
A memory profiler for Linux.
Stars: ✭ 2,422 (+1245.56%)
Mutual labels:  profiler
Web Profiler Bundle
The WebProfilerBundle provides detailed technical information about each request execution and displays it in both the web debug toolbar and the profiler.
Stars: ✭ 1,905 (+958.33%)
Mutual labels:  profiler
Unityheapexplorer
A Memory Profiler, Debugger and Analyzer for Unity 2019.3 and newer.
Stars: ✭ 179 (-0.56%)
Mutual labels:  profiler
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+1074.44%)
Mutual labels:  vim-plugins
Hotspot
The Linux perf GUI for performance analysis.
Stars: ✭ 2,415 (+1241.67%)
Mutual labels:  profiler
Vimux
easily interact with tmux from vim
Stars: ✭ 1,980 (+1000%)
Mutual labels:  vim-plugins
Memoro
Memoro: A Detailed Heap Profiler
Stars: ✭ 159 (-11.67%)
Mutual labels:  profiler
Stackanswers.vim
Vim plugin to fetch and display answers from Stack Overflow
Stars: ✭ 165 (-8.33%)
Mutual labels:  vim-plugins
Vim Fakeclip
Vim plugin: Provide pseudo "clipboard" registers
Stars: ✭ 154 (-14.44%)
Mutual labels:  vim-plugins
Exit Vim
Vim plugin that exits Vim on startup
Stars: ✭ 176 (-2.22%)
Mutual labels:  vim-plugins
Vim Tidal
Vim plugin for TidalCycles
Stars: ✭ 147 (-18.33%)
Mutual labels:  vim-plugins
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (-9.44%)
Mutual labels:  vim-plugins
Nlp profiler
A simple NLP library allows profiling datasets with one or more text columns. When given a dataset and a column name containing text data, NLP Profiler will return either high-level insights or low-level/granular statistical information about the text in that column.
Stars: ✭ 181 (+0.56%)
Mutual labels:  profiler
Yii2 Debug
Debug Extension for Yii 2
Stars: ✭ 179 (-0.56%)
Mutual labels:  profiler
Vim Shortcut
💇 Discoverable & searchable shortcuts for (Neo)Vim
Stars: ✭ 170 (-5.56%)
Mutual labels:  vim-plugins

startuptime.vim

startuptime

Everybody knows that 1ms could mean the difference between life and death in Vim. This plugin breaks down the output of --startuptime so you can zero in on the scripts that are stealing dozens of your milliseconds each time Vim is started. You won't even need to leave the comfort of Vim.

Usage

Use the command :StartupTime to get an averaged startup profile. By default, it collects 10 samples.

It accepts multiple arguments. If a number is found, it is used as the sample count. If a filename is found, it will be used with the -u argument while profiling.

Example collecting 100 samples and using ~/foo.vim as the vimrc script:

:StartupTime ~/foo.vim 100

If -- is found in the command arguments, everything after it will be used verbatim in the program execution.

Example collecting 100 samples with manual arguments:

:StartupTime 100 -- -u ~/foo.vim -i NONE -- ~/foo.vim

Note that the first -- is dropped.

To upload the results, you can use a plugin like gist-vim.

Details

You have been able to profile Vim's startup by using the --startuptime argument since v7.2. However, the results are written to a file and it reports timing per loaded script. The output method and results aren't very useful to a layman that just wants to know what plugins are affecting Vim's startup speed.

This plugin takes multiple samples (10 by default) of the --startuptime output and displays the average times broken down by source. A source could be your [vimrc] scripts, Vim's built-in [runtime] scripts, or plugins. Vim doesn't actually have a formal plugin system. As a result, a "plugin" is simply a path found in runtimepath that looks like a plugin. If the source can't be determined, it display as [unknown].

The results shows the total average startup time and the 10 slowest "plugins". Below it are the load times, separated by startup phases and sorted by load time. Under each phase, load times are broken down by "plugin". Under each "plugin" are the load times for individual scripts. These are folded by default and can be opened with zo if you want more detail.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].