61

Which tools do you guys use? How do demangle c++ symbols do be able to pass it to profiler tools, such as opannotate?

Thanks

Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
vehomzzz
  • 42,832
  • 72
  • 186
  • 216

2 Answers2

100

Use nm to see all symbols and c++filt to demangle.

Example:

nm -an foo | c++filt
Dan Moulding
  • 211,373
  • 23
  • 97
  • 98
0

The profiling tool I use already knows the symbols and source code, since it is just the debugger. I can build the app with symbols included, even with full optimization.

Community
  • 1
  • 1
Mike Dunlavey
  • 40,059
  • 14
  • 91
  • 135