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,
64 MPI::LONG_INT, MPI::MAX);
static long int nDeallocate()
Return number of times deallocate() was called.
static long int nAllocate()
Return number of times allocate() was 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.
Utility classes for scientific computation.