MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / PrintDetailedMap_Begin

Method PrintDetailedMap_Begin

3rdparty/d3d12memalloc/src/D3D12MemAlloc.cpp:3201–3218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3199}
3200
3201void BlockMetadata::PrintDetailedMap_Begin(JsonWriter& json,
3202 UINT64 unusedBytes, size_t allocationCount, size_t unusedRangeCount) const
3203{
3204 json.WriteString(L"TotalBytes");
3205 json.WriteNumber(GetSize());
3206
3207 json.WriteString(L"UnusedBytes");
3208 json.WriteNumber(unusedBytes);
3209
3210 json.WriteString(L"Allocations");
3211 json.WriteNumber((UINT64)allocationCount);
3212
3213 json.WriteString(L"UnusedRanges");
3214 json.WriteNumber((UINT64)unusedRangeCount);
3215
3216 json.WriteString(L"Suballocations");
3217 json.BeginArray();
3218}
3219
3220void BlockMetadata::PrintDetailedMap_Allocation(JsonWriter& json,
3221 UINT64 offset, UINT64 size, void* privateData) const

Callers

nothing calls this directly

Calls 4

GetSizeFunction · 0.70
WriteStringMethod · 0.45
WriteNumberMethod · 0.45
BeginArrayMethod · 0.45

Tested by

no test coverage detected