A Rust profiler for Sublime Text
To run the profiler, you will need to install:
-
llvm-profdata and llvm-cov
You can get the above LLVM-specific tools as part of llvm or by running
rustup component add llvm-tools-preview
You can install the package from packagecontrol.io.
When viewing a Rust (.rs) file in a Cargo repository, press alt+h to run the profiler.
Note that this runs the following shell commands:
cargo rustc
cargo run
llvm-profdata ...
llvm-cov ...
To clear the profiling data, press ctrl/cmd+alt+h.
You can also find the above commands in the Command Palette by search for Hotspots.