1 #ifndef art_Utilities_MallocOpts_h 2 #define art_Utilities_MallocOpts_h 66 bool retrieveFromCpuType();
67 bool retrieveFromEnv();
68 void adjustMallocParams();
72 return !error_message_.empty();
77 return error_message_;
83 values_.mmap_max_ = mmap_max;
89 values_.trim_thr_ = trim_thr;
95 values_.top_pad_ = top_pad;
101 values_.mmap_thr_ = mmap_thr;
static std::string trim(const std::string &str, const std::string &whitespace=" \t")
MallocOpts::opt_type opt_type
void set_trim_thr(opt_type trim_thr)
MallocOpts(opt_type max, opt_type trim, opt_type pad, opt_type mmap_thr)
bool operator!=(const MallocOpts &opts) const
std::string error_message_
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
static int max(int a, int b)
void set_mmap_thr(opt_type mmap_thr)
void set_mmap_max(opt_type mmap_max)
std::string error_message() const
void set_top_pad(opt_type top_pad)
bool operator==(const MallocOpts &opts) const