Fix profiler crashing in the installer. (#1507)
Some checks failed
validate-internal / build (push) Failing after 17s

This commit is contained in:
Skyth (Asilkan) 2025-04-04 00:17:00 +03:00 committed by GitHub
parent 1555b97b8a
commit 325e4d34a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2437,6 +2437,8 @@ static void DrawProfiler()
ImGui::NewLine();
if (g_userHeap.heap != nullptr && g_userHeap.physicalHeap != nullptr)
{
O1HeapDiagnostics diagnostics, physicalDiagnostics;
{
std::lock_guard lock(g_userHeap.mutex);
@ -2449,6 +2451,8 @@ static void DrawProfiler()
ImGui::Text("Heap Allocated: %d MB", int32_t(diagnostics.allocated / (1024 * 1024)));
ImGui::Text("Physical Heap Allocated: %d MB", int32_t(physicalDiagnostics.allocated / (1024 * 1024)));
}
ImGui::Text("GPU Waits: %d", int32_t(g_waitForGPUCount));
ImGui::Text("Buffer Uploads: %d", int32_t(g_bufferUploadCount));
ImGui::NewLine();