Bug 481485 - [Feature request] Add support for rust demangling (using rustc-demangle C library probably)
Summary: [Feature request] Add support for rust demangling (using rustc-demangle C lib...
Status: REPORTED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.5.0
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-17 19:55 UTC by Vorpal
Modified: 2024-02-17 20:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vorpal 2024-02-17 19:55:13 UTC
SUMMARY

Hi I couldn't find a separate location to file feature requests so I hope this it the right location. Currently when looking at Rust binaries I get some partially demangled names. Presumably it is close enough to C++ to get some demangling. Unfortunately that is probably the worst option, as I can't just copy paste the half-demangled name into a proper rust demangler (like https://github.com/luser/rustfilt).

I would thus appreciate if you either didn't demangle rust symbols at all, or used https://github.com/rust-lang/rustc-demangle#usage-from-non-rust-languages to do it fully. I know that hotspot by KDAB (which seems very closely related to this GUI-wise) already has support for rust demangling, so maybe it wouldn't be too difficult to add here as well.

STEPS TO REPRODUCE
1.  Profile a rust binary
2. Open in heaptrack_gui
3. Be met with confusing partially demangled names

OBSERVED RESULT
Partially demangled names

EXPECTED RESULT
Preferably fully demangled (otherwise not demangled at all)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION