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

Function validate_je_prof_dump

src/brpc/details/jemalloc_profiler.cpp:320–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static bool validate_je_prof_dump(const char*, int32_t val) {
321 if (!HasJemalloc()) {
322 return true;
323 }
324 if (!HasInit(__func__)) {
325 return true;
326 }
327
328 const std::string prof_name = JeProfileDump();
329 if (prof_name.empty()) {
330 LOG(WARNING) << "Fail to dump profile";
331 return false;
332 }
333 return true;
334}
335
336static bool validate_je_prof_reset(const char*, int32_t val) {
337 if (!HasJemalloc()) {

Callers

nothing calls this directly

Calls 4

HasJemallocFunction · 0.85
HasInitFunction · 0.85
JeProfileDumpFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected