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

Method PrintDetailedMap_Allocation

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

Source from the content-addressed store, hash-verified

3218}
3219
3220void BlockMetadata::PrintDetailedMap_Allocation(JsonWriter& json,
3221 UINT64 offset, UINT64 size, void* privateData) const
3222{
3223 json.BeginObject(true);
3224
3225 json.WriteString(L"Offset");
3226 json.WriteNumber(offset);
3227
3228 if (IsVirtual())
3229 {
3230 json.WriteString(L"Size");
3231 json.WriteNumber(size);
3232 if (privateData)
3233 {
3234 json.WriteString(L"CustomData");
3235 json.WriteNumber((uintptr_t)privateData);
3236 }
3237 }
3238 else
3239 {
3240 const Allocation* const alloc = (const Allocation*)privateData;
3241 D3D12MA_ASSERT(alloc);
3242 json.AddAllocationToObject(*alloc);
3243 }
3244 json.EndObject();
3245}
3246
3247void BlockMetadata::PrintDetailedMap_UnusedRange(JsonWriter& json,
3248 UINT64 offset, UINT64 size) const

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected