koute / not-perf

A sampling CPU profiler for Linux
Apache License 2.0
871 stars 41 forks source link

demangling support #24

Open ruabmbua opened 3 years ago

ruabmbua commented 3 years ago

Would it be easy to add demangling support based on a filter program, so users can plug in e.g. c++filt?

koute commented 3 years ago

C++ symbols are already automatically demangled, so why would you want to do that?

ruabmbua commented 3 years ago

Then it seems like it is not working for me ;-(

koute commented 3 years ago

Can you check whenever your symbol is properly demangled by cpp_demangle?

ruabmbua commented 3 years ago

Seems to work, when I try their "cppfilt" example.

koute commented 3 years ago

What's the exact symbol that doesn't get demangled?

ruabmbua commented 3 years ago

Essentially all of them, as far as I can see.

Here is an example: _Z15scheduler_startP4TASK29mode

ruabmbua commented 3 years ago

whoops, no this one: _Z15scheduler_startP4TASK29imd_enum_robot_operating_mode

koute commented 3 years ago

Yeah, that should definitely work.

ruabmbua commented 3 years ago

I will take a look at this again, if I am using the tool next time.