Linux perf demangle D symbols
Mathias Lang
pro.mathias.lang at gmail.com
Wed Feb 26 10:21:12 UTC 2020
On Wednesday, 26 February 2020 at 07:20:03 UTC, Arun
Chandrasekaran wrote:
> Does anyone use Linux perf here, with D symbols demangled?
>
> I'm on Ubuntu 19.10, but I can't get perf to demangle the D
> symbols.
For the non interactive version, you can just use `perf report |
ddemangle`
As for the interactive version, I don't know. Other coreutils
tools have a `--demangle=dlang` option (e.g. `nm`), but perf only
have `--demangle` to prevent demangling of symbols:
```
--demangle Disable symbol demangling
--demangle-kernel
Enable kernel symbol demangling
```
There's also an `objdump` option which you can set to a shell
script that does `objdump --demangle=dlang $*` so you get symbols
demangled in the disassembled code, but for the main interface,
there doesn't seem to be a way to do it interactively. Perhaps
raise the issue upstream?
More information about the Digitalmars-d
mailing list