| 113 | } |
| 114 | |
| 115 | const char* FrameName::decodeNativeSymbol(const char* name) { |
| 116 | const char* lib_name = (_style & STYLE_LIB_NAMES) ? Profiler::instance()->getLibraryName(name) : NULL; |
| 117 | |
| 118 | if (Demangle::needsDemangling(name)) { |
| 119 | char* demangled = Demangle::demangle(name, _style & STYLE_SIGNATURES); |
| 120 | if (demangled != NULL) { |
| 121 | if (lib_name != NULL) { |
| 122 | _str.assign(lib_name).append("`").append(demangled); |
| 123 | } else { |
| 124 | _str.assign(demangled); |
| 125 | } |
| 126 | free(demangled); |
| 127 | return _str.c_str(); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | if (lib_name != NULL) { |
| 132 | return _str.assign(lib_name).append("`").append(name).c_str(); |
| 133 | } else { |
| 134 | return name; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | const char* FrameName::typeSuffix(FrameTypeId type) { |
| 139 | if (_style & STYLE_ANNOTATE) { |
nothing calls this directly
no test coverage detected