AssetMemoryAnalyzer

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-17 16:45:18 -07:00
committed by Esteban Papp
parent 5e863f810d
commit 82ba53dee3
2 changed files with 7 additions and 7 deletions
@@ -201,13 +201,13 @@ namespace AssetMemoryAnalyzer
{
case AllocationCategories::HEAP:
ImGui::Text(FormatUtils::FormatCodePoint(*ap->m_codePoint));
heapSummary.m_allocationCount = ap->m_allocations.size();
heapSummary.m_allocationCount = static_cast<uint32_t>(ap->m_allocations.size());
heapSummary.m_allocatedMemory = ap->m_totalAllocatedMemory;
break;
case AllocationCategories::VRAM:
ImGui::Text("%s", ap->m_codePoint->m_file);
vramSummary.m_allocationCount = ap->m_allocations.size();
vramSummary.m_allocationCount = static_cast<uint32_t>(ap->m_allocations.size());
vramSummary.m_allocatedMemory = ap->m_totalAllocatedMemory;
break;
}
@@ -78,7 +78,7 @@ namespace AssetMemoryAnalyzer
writer.StartObject();
writer.Key("id");
writer.Int(idCounter++);
writer.Int(static_cast<int>(idCounter++));
writer.Key("label");
writer.String(asset.m_id ? asset.m_id : "Root");
@@ -98,7 +98,7 @@ namespace AssetMemoryAnalyzer
{
writer.StartObject();
writer.Key("id");
writer.Int(idCounter++);
writer.Int(static_cast<int>(idCounter++));
writer.Key("label");
writer.String("<local allocations>");
@@ -119,7 +119,7 @@ namespace AssetMemoryAnalyzer
writer.StartObject();
writer.Key("id");
writer.Int(idCounter++);
writer.Int(static_cast<int>(idCounter++));
writer.Key("label");
@@ -127,13 +127,13 @@ namespace AssetMemoryAnalyzer
{
case AllocationCategories::HEAP:
writer.String(FormatUtils::FormatCodePoint(*ap.m_codePoint));
heapSummary.m_allocationCount = ap.m_allocations.size();
heapSummary.m_allocationCount = static_cast<uint32_t>(ap.m_allocations.size());
heapSummary.m_allocatedMemory = ap.m_totalAllocatedMemory;
break;
case AllocationCategories::VRAM:
writer.String(ap.m_codePoint->m_file);
vramSummary.m_allocationCount = ap.m_allocations.size();
vramSummary.m_allocationCount = static_cast<uint32_t>(ap.m_allocations.size());
vramSummary.m_allocatedMemory = ap.m_totalAllocatedMemory;
break;
}