14 long int Memory::nAllocate_ = 0;
17 long int Memory::nDeallocate_ = 0;
20 long int Memory::total_ = 0;
23 long int Memory::max_ = 0;
35 {
return nAllocate_; }
41 {
return nDeallocate_; }
62 long int maxLocal = max_;
63 communicator.Allreduce(&maxLocal, &maxGlobal, 1,
static long int nDeallocate()
Return number of times deallocate() or sub() have been called.
static long int nAllocate()
Return number of times reallocate() or add() have been called.
static long int max()
Return the maximum amount of allocated heap memory thus far.
static long int total()
Return total amount of memory currently allocated.
static void initStatic()
Call this just to guarantee initialization of static memory.
static void clearCounters()
Reset total and max counters to zero.
Utility classes for scientific computation.