StatBag::AddMemoryStat

StatBag::AddMemoryStat
bool AddMemoryStat(unsigned statId, const MemoryStat& stat);
Description

AddMemoryStat is an optimization function for memory heap statistics and adds the statistics of another memory statistics object to the current one.

Parameters
Parameters 
Description 
unsigned statId 
Integer identifier of allocation category. 
const MemoryStat& stat 
Memory heap statistics which is added to the current statistics object. 
Return Value

A Boolean value of true if the memory statistics are added otherwise false.