MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddStatistics

Method AddStatistics

Source/ThirdParty/VulkanMemoryAllocator/vk_mem_alloc.h:6383–6397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6381}
6382
6383void VmaDedicatedAllocationList::AddStatistics(VmaStatistics& inoutStats)
6384{
6385 VmaMutexLockRead lock(m_Mutex, m_UseMutex);
6386
6387 const uint32_t allocCount = (uint32_t)m_AllocationList.GetCount();
6388 inoutStats.blockCount += allocCount;
6389 inoutStats.allocationCount += allocCount;
6390
6391 for(auto* item = m_AllocationList.Front(); item != VMA_NULL; item = DedicatedAllocationLinkedList::GetNext(item))
6392 {
6393 const VkDeviceSize size = item->GetSize();
6394 inoutStats.blockBytes += size;
6395 inoutStats.allocationBytes += size;
6396 }
6397}
6398
6399#if VMA_STATS_STRING_ENABLED
6400void VmaDedicatedAllocationList::BuildStatsString(VmaJsonWriter& json)

Callers 2

GetStatisticsMethod · 0.80
GetPoolStatisticsMethod · 0.80

Calls 7

backMethod · 0.80
GetSizeFunction · 0.50
GetCountMethod · 0.45
FrontMethod · 0.45
GetSizeMethod · 0.45
sizeMethod · 0.45
ValidateMethod · 0.45

Tested by

no test coverage detected