| 334 | } |
| 335 | |
| 336 | static 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 |
| 353 | BRPC_VALIDATE_GFLAG(je_prof_active, validate_je_prof_active); |
nothing calls this directly
no test coverage detected