MemoryPoolStats¶
struct MemoryPoolStats
Collects the statistics about the memory allocations * for a specific pool
Variables¶
| Name | Description |
|---|---|
| pool | The pool for which this statistics is for. |
| maxMemoryUsed | The maximum total memory used by this pool. |
| allocCount | The total count of allocations made on this pool. |
| freeCount | The total count of frees made on this pool. |
Operators¶
| Name | Description |
|---|---|
| operator= | Assignment operator. |
Functions¶
| Name | Description |
|---|---|
| MemoryPoolStats | Default constructor. |
| MemoryPoolStats | Creates a new MemoryPoolStats object. |
| MemoryPoolStats | Copy constructor. |
Variable Details¶
allocCount¶
std::atomic<AmUInt64> allocCount
The total count of allocations made on this pool.
freeCount¶
std::atomic<AmUInt64> freeCount
The total count of frees made on this pool.
maxMemoryUsed¶
std::atomic<AmSize> maxMemoryUsed
The maximum total memory used by this pool.
pool¶
eMemoryPoolKind pool
The pool for which this statistics is for.
Operator Details¶
operator=¶
MemoryPoolStats& operator=(const MemoryPoolStats& other)
Assignment operator.
- Parameter
other - The
MemoryPoolStatsobject to assign from.
Function Details¶
MemoryPoolStats¶
MemoryPoolStats()
Default constructor.
explicit MemoryPoolStats(eMemoryPoolKind pool)
Creates a new MemoryPoolStats object.
- Parameter
pool - The pool to get the statistics for.
MemoryPoolStats(const MemoryPoolStats& copy)
Copy constructor.
- Parameter
copy - The
MemoryPoolStatsobject to copy from.