LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MallocOpts.h"
Public Types | |
using | opt_type = MallocOpts::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 61 of file MallocOpts.h.
Definition at line 63 of file MallocOpts.h.
art::MallocOptionSetter::MallocOptionSetter | ( | ) |
Definition at line 134 of file MallocOpts.cc.
References adjustMallocParams(), error_message_, hasErrors(), retrieveFromCpuType(), and retrieveFromEnv().
void art::MallocOptionSetter::adjustMallocParams | ( | ) |
Definition at line 146 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 75 of file MallocOpts.h.
|
inline |
Definition at line 106 of file MallocOpts.h.
|
inline |
bool art::MallocOptionSetter::retrieveFromCpuType | ( | ) |
Definition at line 111 of file MallocOpts.cc.
References changed_, and values_.
Referenced by MallocOptionSetter().
bool art::MallocOptionSetter::retrieveFromEnv | ( | ) |
Definition at line 172 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 81 of file MallocOpts.h.
|
inline |
Definition at line 99 of file MallocOpts.h.
|
inline |
Definition at line 93 of file MallocOpts.h.
|
inline |
Definition at line 87 of file MallocOpts.h.
|
private |
Definition at line 112 of file MallocOpts.h.
Referenced by adjustMallocParams(), retrieveFromCpuType(), and retrieveFromEnv().
|
private |
Definition at line 115 of file MallocOpts.h.
Referenced by adjustMallocParams(), and MallocOptionSetter().
|
private |
Definition at line 113 of file MallocOpts.h.
Referenced by adjustMallocParams(), retrieveFromCpuType(), and retrieveFromEnv().