MCPcopy Create free account
hub / github.com/apple/foundationdb / functionNameFromInnerType

Function functionNameFromInnerType

flow/CodeProbe.cpp:243–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241} // namespace
242
243std::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
250void registerProbe(const ICodeProbe& probe) {
251 CodeProbes::instance().add(&probe);

Callers 1

functionMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected