MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / VmaPrintDetailedStatistics

Function VmaPrintDetailedStatistics

include/vk_mem_alloc.h:6068–6098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6066#endif // _VMA_JSON_WRITER_FUNCTIONS
6067
6068static void VmaPrintDetailedStatistics(VmaJsonWriter& json, const VmaDetailedStatistics& stat)
6069{
6070 json.BeginObject();
6071
6072 json.WriteString("BlockCount");
6073 json.WriteNumber(stat.statistics.blockCount);
6074 json.WriteString("BlockBytes");
6075 json.WriteNumber(stat.statistics.blockBytes);
6076 json.WriteString("AllocationCount");
6077 json.WriteNumber(stat.statistics.allocationCount);
6078 json.WriteString("AllocationBytes");
6079 json.WriteNumber(stat.statistics.allocationBytes);
6080 json.WriteString("UnusedRangeCount");
6081 json.WriteNumber(stat.unusedRangeCount);
6082
6083 if (stat.statistics.allocationCount > 1)
6084 {
6085 json.WriteString("AllocationSizeMin");
6086 json.WriteNumber(stat.allocationSizeMin);
6087 json.WriteString("AllocationSizeMax");
6088 json.WriteNumber(stat.allocationSizeMax);
6089 }
6090 if (stat.unusedRangeCount > 1)
6091 {
6092 json.WriteString("UnusedRangeSizeMin");
6093 json.WriteNumber(stat.unusedRangeSizeMin);
6094 json.WriteString("UnusedRangeSizeMax");
6095 json.WriteNumber(stat.unusedRangeSizeMax);
6096 }
6097 json.EndObject();
6098}
6099#endif // _VMA_JSON_WRITER
6100
6101#ifndef _VMA_MAPPING_HYSTERESIS

Callers 2

BuildStatsStringMethod · 0.85
vmaBuildStatsStringFunction · 0.85

Calls 4

BeginObjectMethod · 0.80
WriteStringMethod · 0.45
WriteNumberMethod · 0.45
EndObjectMethod · 0.45

Tested by

no test coverage detected