Direct3D 12 Memory Allocator
Loading...
Searching...
No Matches
Public Attributes | List of all members
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;

Member Data Documentation

◆ AllocationSizeMax

UINT64 D3D12MA::DetailedStatistics::AllocationSizeMax

Largest allocation size. 0 if there are 0 allocations.

◆ AllocationSizeMin

UINT64 D3D12MA::DetailedStatistics::AllocationSizeMin

Smallest allocation size. UINT64_MAX if there are 0 allocations.

◆ Stats

Statistics D3D12MA::DetailedStatistics::Stats

Basic statistics.

◆ UnusedRangeCount

UINT D3D12MA::DetailedStatistics::UnusedRangeCount

Number of free ranges of memory between allocations.

◆ UnusedRangeSizeMax

UINT64 D3D12MA::DetailedStatistics::UnusedRangeSizeMax

Largest empty range size. 0 if there are 0 empty ranges.

◆ UnusedRangeSizeMin

UINT64 D3D12MA::DetailedStatistics::UnusedRangeSizeMin

Smallest empty range size. UINT64_MAX if there are 0 empty ranges.


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