| 84 | } |
| 85 | |
| 86 | std::string StatsPrint(const std::string& opts) { |
| 87 | if (malloc_stats_print == nullptr) { |
| 88 | return "your jemalloc no support malloc_stats_print"; |
| 89 | } |
| 90 | |
| 91 | std::string stat_str; |
| 92 | malloc_stats_print(WriteCb, &stat_str, opts.c_str()); |
| 93 | return stat_str; |
| 94 | } |
| 95 | |
| 96 | static int JeProfileActive(bool active) { |
| 97 | if (!HasJemalloc()) { |
no test coverage detected