MCPcopy Create free account
hub / github.com/apache/brpc / HasInit

Function HasInit

src/brpc/details/jemalloc_profiler.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54extern int MakeProfName(ProfilingType type, char* buf, size_t buf_len);
55
56static bool HasInit(const std::string& fn) {
57 static std::set<std::string> fns;
58 if (fns.count(fn) > 0) {
59 return true;
60 }
61 fns.insert(fn);
62 return false;
63}
64
65bool HasJemalloc() {
66 return mallctl != nullptr;

Callers 3

validate_je_prof_activeFunction · 0.85
validate_je_prof_dumpFunction · 0.85
validate_je_prof_resetFunction · 0.85

Calls 2

countMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected