11 #ifndef IPPL_MEMPRYUSAGE_H
12 #define IPPL_MEMPRYUSAGE_H
44 #include <sys/resource.h>
89 const std::string&
getUnit()
const;
std::unique_ptr< IpplMemoryUsage > IpplMemory_t
static IpplMemory_t instance_mp
*this
double initial_memory_m
memory usage at construction time [GB] or [GiB]
IpplMemoryUsage * IpplMemory_p
double conversion_factor_m
to various units. getrusage() returns in kB
static IpplMemory_p getInstance(Unit unit=Unit::GB, bool reset=true)
double who_m
RUSAGE_SELF, RUSAGE_CHILDREN (, RUSAGE_THREAD)
std::string unit_m
what's the unit of the memory
const std::string & getUnit() const
double max_rss_m
max. resident set size [GB] or [GiB]
std::unique_ptr< double[]> globalMemPerCore_m
memory of all cores
double getMemoryUsage(int core) const