StatBag::IncrementMemoryStat

StatBag::IncrementMemoryStat
bool IncrementMemoryStat(unsigned statId, UPInt alloc, UPInt use);
Description

AddMemoryStat is an optimization function for memory heap statistics and increments the bytes allocated for the memory statistics.

Parameters
Parameters 
Description 
unsigned statId 
Integer identifier of allocation category. 
UPInt alloc 
Bytes to be allocated for the allocation. 
UPInt use 
Bytes to be used for maintaining the header and space alignment. 
Return Value

A Boolean value of true if the memory allocation statistics is incremented otherwise false.