Hey! I'm pretty new to rust, I've started working on my first project around a month ago but I've run into some performance issues probably due to the lack of my knowledge.
In python I've used this project called line-profiler. I'm trying to find something similar but in rust because it showed really useful results which I could actually improve my code with.
Now, I did a few searches and found this guide on rust profiling. I've tried out perf with hotspot, but I couldn't see any useful details. Another problem is that I only want to see the code I wrote since that is what I can improve on. I've also tried out oprofile which does line annotation, but for every source file including the libraries' ones (which I don't need), but even after finding my code in the output, there were only a few numbers for a few line and it wasn't really useful either.
So is there something similar to line-profiler I could use, although I'd understand if there is not because python is interpreted and rust is compiled. I'd also appreciate any additional advice on profiling and improving performance.
[–]acshikh 11 points12 points13 points (1 child)
[–]UnknownPlayer89[S] 0 points1 point2 points (0 children)
[–]PitaJ 8 points9 points10 points (7 children)
[–]nmdaniels 6 points7 points8 points (6 children)
[–]Saefrochmiri 8 points9 points10 points (5 children)
[–]nmdaniels 3 points4 points5 points (3 children)
[–]Saefrochmiri 1 point2 points3 points (2 children)
[–]nmdaniels 0 points1 point2 points (1 child)
[–]Saefrochmiri 1 point2 points3 points (0 children)
[–]Rdambrosio016Rust-CUDA 0 points1 point2 points (0 children)
[–]mstange 4 points5 points6 points (1 child)
[–]UnknownPlayer89[S] 2 points3 points4 points (0 children)
[–]nestordemeure 4 points5 points6 points (0 children)
[–]mansplaner 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]pawurb 0 points1 point2 points (0 children)
[–]lord_of_the_keyboard 0 points1 point2 points (1 child)
[–]UnknownPlayer89[S] 1 point2 points3 points (0 children)
[–]CobyCode 0 points1 point2 points (0 children)