Skip to content

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

MemoryPoolKind pool

The pool for which this statistics is for.

Operator Details

operator=

MemoryPoolStats& operator=(const MemoryPoolStats& other)

Assignment operator.

Parameter other
The MemoryPoolStats object to assign from.

Function Details

MemoryPoolStats

MemoryPoolStats()

Default constructor.

explicit MemoryPoolStats(MemoryPoolKind pool)

Creates a new MemoryPoolStats object.

Parameter pool
The pool to get the statistics for.

MemoryPoolStats(const MemoryPoolStats& copy)

Copy constructor.

Parameter copy
The MemoryPoolStats object to copy from.