| 6066 | #endif // _VMA_JSON_WRITER_FUNCTIONS |
| 6067 | |
| 6068 | static 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 |
no test coverage detected