Macaulay2 Engine
Loading...
Searching...
No Matches
myalloc.cpp
Go to the documentation of this file.
1#include "myalloc.hpp"
2
8
9std::ostream& operator<<(std::ostream& o, AllocLogger a)
10{
11 o << "allocs/deallocs, total/high/current size allocated: "
12 << a.mNumAllocs << "/" << a.mNumDeallocs << " "
13 << a.mAllocSize << "/" << a.mHighWater << "/" << a.mCurrentAllocSize;
14 return o;
15}
16
17// Local Variables:
18// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
19// indent-tabs-mode: nil
20// End:
static size_t mNumDeallocs
Definition myalloc.hpp:67
static long mCurrentAllocSize
Definition myalloc.hpp:68
static size_t mAllocSize
Definition myalloc.hpp:66
static size_t mHighWater
Definition myalloc.hpp:69
static size_t mNumAllocs
Definition myalloc.hpp:65
Process-wide allocation counter used by StatsAllocator for debugging and benchmarking.
Definition myalloc.hpp:63
std::ostream & operator<<(std::ostream &o, AllocLogger a)
Definition myalloc.cpp:9
AllocLogger / StatsAllocator — single-threaded debug/benchmark instrumentation.