Scaleform::Stat Scaleform::MemoryStat
class MemoryStat : public Stat;
MemoryStats records memory allocation statistics for a particular allocation Id type. MemoryStat keeps track of the number of bytes allocated and used, including peak memory usage. Unlike allocation size, parameter "used" includes the number of bytes occupied in the allocator for maintaining the block, including the different header and alignment space.
Data Member |
Description |
Number of bytes allocated for the memory blocks. | |
Number of allocated memory blocks. | |
Number of bytes occupied in the allocator for maintaining the block, including the different header and alignment space. |
Method |
Description |
Adds the allocation statistics of another MemoryStat object to the current object. | |
Returns the number of bytes allocated for the memory blocks. | |
Returns the number of blocks allocated. | |
Returns the type of the statistics generated. | |
Obtains the statistics value of the memory allocation counter. | |
Obtains the maximum number of statistics in the memory statistics counter. | |
Returns the number of bytes allocated for maintaining the memory block. | |
Increments the bytes allocated for the memory block. | |
Initializes the memory allocation statistics counter. | |
Initializes MemoryStat object. | |
Resets the memory allocation statistics. | |
Compares with another MemoryStat object and sets the maximum of the allocation statistics to the current MemoryStat object. | |
Compares with another MemoryStat object and sets the minimum of the allocation statistics to the current MemoryStat object. |
Operator |
Description |
Increments the allocation size of the current MemoryStat object by adding the allocation statistics of another MemoryStat object to the current one. | |
Decrements the allocation statistics of the current MemoryStat object by subtracting the allocation statistics of another MemoryStat object from the current one. |
SF_Stats.h