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

More detailed statistics than VmaStatistics. More...

#include <vk_mem_alloc.h>

Public Attributes

VmaStatistics statistics
 Basic statistics.
 
uint32_t unusedRangeCount
 Number of free ranges of memory between allocations.
 
VkDeviceSize allocationSizeMin
 Smallest allocation size. VK_WHOLE_SIZE if there are 0 allocations.
 
VkDeviceSize allocationSizeMax
 Largest allocation size. 0 if there are 0 allocations.
 
VkDeviceSize unusedRangeSizeMin
 Smallest empty range size. VK_WHOLE_SIZE if there are 0 empty ranges.
 
VkDeviceSize unusedRangeSizeMax
 Largest empty range size. 0 if there are 0 empty ranges.
 

Detailed Description

More detailed statistics than VmaStatistics.

These are slower to calculate. Use for debugging purposes. See functions: vmaCalculateStatistics(), vmaCalculatePoolStatistics().

Previous version of the statistics API provided averages, but they have been removed because they can be easily calculated as:

VkDeviceSize allocationSizeAvg = detailedStats.statistics.allocationBytes / detailedStats.statistics.allocationCount;
VkDeviceSize unusedBytes = detailedStats.statistics.blockBytes - detailedStats.statistics.allocationBytes;
VkDeviceSize unusedRangeSizeAvg = unusedBytes / detailedStats.unusedRangeCount;

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