| 318 | } |
| 319 | |
| 320 | static 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 | |
| 336 | static bool validate_je_prof_reset(const char*, int32_t val) { |
| 337 | if (!HasJemalloc()) { |
nothing calls this directly
no test coverage detected