vscode-rust
vscode-rust copied to clipboard
Feature request: Line-by-line profiling
By installing oprofile:
sudo apt-get install linux-tools-generic oprofile
and then running 2 commands:
operf ./path/to/binary
opannotate --source
it's possible to generate a line-by-line profile of Rust code (relative timings associated with each line of code). I'm wondering whether it's feasible to add this functionality into the extension? It would be neat to be able to scroll through Rust code in the editor and have timings in the gutter next to the line numbers. Here's an example from Chrome DevTools' JavaScript Profiler:

Linux's perf also has line-by-line profiling, but source lines are mixed in with assembly.
I have no experience with VS Code extensions, so apologies if this is out of the question, and in that case of course feel free to close this issue.
Any updates after 2 years? This is very useful!