An open API service indexing awesome lists of open source software.

https://github.com/vim-denops/denops-startup-recorder.vim

🩺 Investigate startup performance of denops plugins
https://github.com/vim-denops/denops-startup-recorder.vim

denops neovim vim

Last synced: 3 months ago
JSON representation

🩺 Investigate startup performance of denops plugins

Awesome Lists containing this project

README

        

# denops-startup-recorder

A [denops][denops] plugin to record startup performance of denops plugins.

[denops]: https://github.com/vim-denops/denops.vim

Call `DenopsStartupRecorderDisplayEvents` to echo the result

```
:DenopsStartupRecorderDisplayEvents
```

The results reveal:

```
┌────────────── Start
│
│ ┌─ End
│ │
├─ Duration ─┤
│ │
{name} 135.105791 ms 461.203625 ms 326.097834 ms â–‘â–‘â–‘â–‘â–‘â–‘â–’â–’â–’â–’â–’â–’â–’â–’â–“â–“â–“â–“â–“â–“â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
┊ ┊┊ ┊
│ ││ │
│ ││ └─ Plugin end
│ ││
│ │└────── Plugin start
│ │
│ └─────── Worker end
│ (may not exist)
└────────────── Worker start
(may not exist)
```

- Event timing from the plugin load
- Time passed from the full loading of the plugin script to the complete initialization of the plugin (`init`).
`DenopsPluginPost:* - DenopsPluginPre:*`

## License

The code follows MIT license written in [LICENSE](./LICENSE). Contributors need
to agree that any modifications sent in this repository follow the license.