Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
D3D12MA::DetailedStatistics Struct Reference

More detailed statistics than D3D12MA::Statistics. More...

#include <D3D12MemAlloc.h>

Public Attributes

Statistics Stats
 Basic statistics.
 
UINT UnusedRangeCount
 Number of free ranges of memory between allocations.
 
UINT64 AllocationSizeMin
 Smallest allocation size. UINT64_MAX if there are 0 allocations.
 
UINT64 AllocationSizeMax
 Largest allocation size. 0 if there are 0 allocations.
 
UINT64 UnusedRangeSizeMin
 Smallest empty range size. UINT64_MAX if there are 0 empty ranges.
 
UINT64 UnusedRangeSizeMax
 Largest empty range size. 0 if there are 0 empty ranges.
 

Detailed Description

More detailed statistics than D3D12MA::Statistics.

These are slower to calculate. Use for debugging purposes. See functions: D3D12MA::Allocator::CalculateStatistics(), D3D12MA::Pool::CalculateStatistics().

Averages are not provided because they can be easily calculated as:

UINT64 AllocationSizeAvg = DetailedStats.Statistics.AllocationBytes / detailedStats.Statistics.AllocationCount;
UINT64 UnusedBytes = DetailedStats.Statistics.BlockBytes - DetailedStats.Statistics.AllocationBytes;
UINT64 UnusedRangeSizeAvg = UnusedBytes / DetailedStats.UnusedRangeCount;

The documentation for this struct was generated from the following file: