| 54 | extern int MakeProfName(ProfilingType type, char* buf, size_t buf_len); |
| 55 | |
| 56 | static bool HasInit(const std::string& fn) { |
| 57 | static std::set<std::string> fns; |
| 58 | if (fns.count(fn) > 0) { |
| 59 | return true; |
| 60 | } |
| 61 | fns.insert(fn); |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | bool HasJemalloc() { |
| 66 | return mallctl != nullptr; |
no test coverage detected