4 ms·
Every Linux C/C++/Rust developer should know about https://github.com/KDAB/hotspot https://github.com/KDAB/hotspot. It's convenient and fast. I use it for Rust
by mullr 4y ago
Every Linux C/C++/Rust developer should know about https://github.com/KDAB/hotspot https://github.com/KDAB/hotspot. It's convenient and fast. I use it for Rust all the time, and it provides all of these features on the back of regular old `perf`.
- galangalalgol 4y agoWhat perf record settings do you use? Trying to use dwarf has never worked well fore with rust, so I've been using lbr, but even then it seems like it gets which instructions are part of which function wrong a significant portion of the time.
- mullr 4y agoI've had no problems with dwarf.
- galangalalgol 4y agoWith optimizations and debug symbols turned on and the arch specified perf report very often puts some pieces of functions in the calling function for me when I use dwarf. Do you do anything specific in the build?
- namibj 4y agoYou need to activate the (somewhat slow?) inline-stack-aware addr2line integration/usage for optimized builds. It doesn't place them there, they exist there (due to inlining).
- saagarjha 4y agoAh, very nice! I’ve been looking for something like Instruments on Linux since I like to click around and this looks cool.