Hacker News new | ask | show | jobs
by mullr 1287 days ago
Every Linux C/C++/Rust developer should know about 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`.
2 comments

What 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.
I've had no problems with dwarf.
With 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?
You 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).

Ah, very nice! I’ve been looking for something like Instruments on Linux since I like to click around and this looks cool.