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

Function validate_je_prof_reset

src/brpc/details/jemalloc_profiler.cpp:336–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336static bool validate_je_prof_reset(const char*, int32_t val) {
337 if (!HasJemalloc()) {
338 return true;
339 }
340 if (!HasInit(__func__)) {
341 return true;
342 }
343
344 if (JeProfileReset(val) != 0) {
345 LOG(WARNING) << "JeProfileReset err";
346 return false;
347 }
348
349 return true;
350}
351
352// e.g: curl ip:port/flags/je_prof_active?setvalue=true or update flags in web
353BRPC_VALIDATE_GFLAG(je_prof_active, validate_je_prof_active);

Callers

nothing calls this directly

Calls 3

HasJemallocFunction · 0.85
HasInitFunction · 0.85
JeProfileResetFunction · 0.85

Tested by

no test coverage detected