| 241 | } // namespace |
| 242 | |
| 243 | std::string functionNameFromInnerType(const char* name) { |
| 244 | auto res = boost::core::demangle(name); |
| 245 | auto pos = res.find_last_of(':'); |
| 246 | ASSERT(pos != res.npos); |
| 247 | return res.substr(0, pos - 1); |
| 248 | } |
| 249 | |
| 250 | void registerProbe(const ICodeProbe& probe) { |
| 251 | CodeProbes::instance().add(&probe); |