Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wookayin/nvim-profiler
A simple Lua Profiler for neovim
https://github.com/wookayin/nvim-profiler
Last synced: about 14 hours ago
JSON representation
A simple Lua Profiler for neovim
- Host: GitHub
- URL: https://github.com/wookayin/nvim-profiler
- Owner: wookayin
- Created: 2024-01-24T07:03:01.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T02:52:19.000Z (10 months ago)
- Last Synced: 2024-10-12T13:45:20.257Z (about 1 month ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple Lua Profiler for Neovim
*Work-in-progress. Not intended for stable use yet.*
Usage: Commands
---------------```vim
" Run a profiling session for the next 5000 milliseconds
:LuaProfile run 5000
``````vim
:LuaProfile start" do some heavy operations (in Lua)
:LuaProfile stop
:LuaProfile result
```FlameGraph (requires [flamegraph] installed):
```vim
:LuaProfile run 5000 --flamegraph
``````vim
:LuaProfile start --flamegraph
" do some heavy operations ...
:LuaProfile stop | LuaProfile result
```Usage: Programmatic (Lua API)
-----------------------------```lua
require("profiler").runcall(function()
-- some heavy operations ...
end, { }) -- opts
```[flamegraph]: https://github.com/flamegraph-rs/flamegraph
License
-------Apache 2.0 License