Home > Net >  Are there any ways to easily optimize Rust in VSCode?
Are there any ways to easily optimize Rust in VSCode?

Time:06-26

I'm currently working on optimizing a big Rust project. I'm very new to Rust so I don't know much about how to optimize. I saw in a Cherno video that there was a tool in Visual Studio C to see CPU usage per line of code, and I am wondering if there is a similar thing for VSCode Rust.

CodePudding user response:

As @Chayim Friedman mentioned, this is called a profiler. The Rust Performance book has a non-exhaustive list of profilers that work with Rust, as you can see here. Cachegrind and Callgrind seem to be closest to what you wish to achieve

  • Related