133 if ( getrusage(
who_m, &usage) == -1 )
134 throw std::runtime_error(
135 "IpplMemoryUsage::sample_m(): Error in collecting memory!");
void gather(const T *input, T *output, int count, int root=0)
const std::string & getUnit() const
static IpplMemory_p getInstance(Unit unit=Unit::GB, bool reset=true)
static IpplMemory_t instance_mp
*this
double getMemoryUsage(int core) const
double max_rss_m
max. resident set size [GB] or [GiB]
double conversion_factor_m
to various units. getrusage() returns in kB
std::unique_ptr< double[]> globalMemPerCore_m
memory of all cores
std::unique_ptr< IpplMemoryUsage > IpplMemory_t
std::string unit_m
what's the unit of the memory
double who_m
RUSAGE_SELF, RUSAGE_CHILDREN (, RUSAGE_THREAD)
double initial_memory_m
memory usage at construction time [GB] or [GiB]