LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "MallocOpts.h"
Public Types | |
typedef MallocOpts::opt_type | opt_type |
Public Member Functions | |
MallocOptionSetter () | |
bool | retrieveFromCpuType () |
bool | retrieveFromEnv () |
void | adjustMallocParams () |
bool | hasErrors () const |
std::string | error_message () const |
void | set_mmap_max (opt_type mmap_max) |
void | set_trim_thr (opt_type trim_thr) |
void | set_top_pad (opt_type top_pad) |
void | set_mmap_thr (opt_type mmap_thr) |
MallocOpts | get () const |
Private Attributes | |
bool | changed_ |
MallocOpts | values_ |
std::string | error_message_ |
Definition at line 63 of file MallocOpts.h.
Definition at line 65 of file MallocOpts.h.
art::MallocOptionSetter::MallocOptionSetter | ( | ) |
Definition at line 135 of file MallocOpts.cc.
References adjustMallocParams(), error_message_, hasErrors(), retrieveFromCpuType(), and retrieveFromEnv().
void art::MallocOptionSetter::adjustMallocParams | ( | ) |
Definition at line 147 of file MallocOpts.cc.
References changed_, error_message_, art::MallocOpts::mmap_max_, art::MallocOpts::mmap_thr_, art::MallocOpts::top_pad_, art::MallocOpts::trim_thr_, and values_.
Referenced by MallocOptionSetter().
|
inline |
Definition at line 77 of file MallocOpts.h.
|
inline |
Definition at line 108 of file MallocOpts.h.
|
inline |
bool art::MallocOptionSetter::retrieveFromCpuType | ( | ) |
Definition at line 112 of file MallocOpts.cc.
References changed_, and values_.
Referenced by MallocOptionSetter().
bool art::MallocOptionSetter::retrieveFromEnv | ( | ) |
Definition at line 173 of file MallocOpts.cc.
References changed_, art::MallocOpts::mmap_max_, art::MallocOpts::mmap_thr_, art::MallocOpts::top_pad_, art::MallocOpts::trim_thr_, and values_.
Referenced by MallocOptionSetter().
|
inline |
Definition at line 83 of file MallocOpts.h.
|
inline |
Definition at line 101 of file MallocOpts.h.
|
inline |
Definition at line 95 of file MallocOpts.h.
|
inline |
Definition at line 89 of file MallocOpts.h.
|
private |
Definition at line 114 of file MallocOpts.h.
Referenced by adjustMallocParams(), retrieveFromCpuType(), and retrieveFromEnv().
|
private |
Definition at line 117 of file MallocOpts.h.
Referenced by adjustMallocParams(), and MallocOptionSetter().
|
private |
Definition at line 115 of file MallocOpts.h.
Referenced by adjustMallocParams(), retrieveFromCpuType(), and retrieveFromEnv().