41 static void *
operator new(
size_t nSize);
46 static void operator delete(
void *)
noexcept {
78 void Update(
const char *pszName,
int nRequested,
int nActual);
void SortBySize()
Sort the rows by bytes handed out, largest first.
BlockStatTable(int bSeparateSizes)
Construct an empty table.
static void PrintDelta(PrnStream &stream, BlockStatTable *pCurrent, BlockStatTable *pPrevious)
Write the differences between the rows of two tables sorted by tag.
void Update(const char *pszName, int nRequested, int nActual)
Add an allocation to the row of its tag, adding the row when the tag is new.
int GetCount() const
Definition blockstattable.h:110
BlockStat * GetStat(int nIndex)
Report a row.
void Clear()
Empty the table.
void SortByName()
Sort the rows by tag.
static constexpr int kCapacity
The rows a table has room for.
Definition blockstattable.h:24
Text output stream.
Definition prnstream.h:16
Totals of the tracked allocations of one tag.
Definition blockstattable.h:8
int mMaxRequested
Definition blockstattable.h:12
const char * mName
Definition blockstattable.h:9
int mSizeActual
Definition blockstattable.h:11
int mNumAllocs
Definition blockstattable.h:13
int mSizeRequested
Definition blockstattable.h:10