| 301 | } |
| 302 | |
| 303 | static bool validate_je_prof_active(const char*, bool enable) { |
| 304 | if (!HasJemalloc()) { |
| 305 | return true; |
| 306 | } |
| 307 | |
| 308 | if (!HasInit(__func__)) { |
| 309 | return true; |
| 310 | } |
| 311 | |
| 312 | if (JeProfileActive(enable) != 0) { |
| 313 | LOG(WARNING) << "JeControlSample err"; |
| 314 | return false; |
| 315 | } |
| 316 | |
| 317 | return true; |
| 318 | } |
| 319 | |
| 320 | static bool validate_je_prof_dump(const char*, int32_t val) { |
| 321 | if (!HasJemalloc()) { |
nothing calls this directly
no test coverage detected