54

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
  • 95,426
  • 26
  • 188
  • 233
vehomzzz
  • 40,280
  • 72
  • 176
  • 213

2 Answers2

88

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

Example:

nm -an foo | c++filt
Dan Moulding
  • 197,830
  • 22
  • 93
  • 97
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
  • 39,349
  • 13
  • 88
  • 132