From a064cedb59b7680c55d8e46219e82cd0e950a21a Mon Sep 17 00:00:00 2001 From: Jacob Hilliard Date: Tue, 27 Jul 2021 09:40:55 -0700 Subject: [PATCH] Visualizer: fix clang build error Signed-off-by: Jacob Hilliard --- Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.h | 2 +- Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.h b/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.h index a4f5763c99..62b71bdbb8 100644 --- a/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.h +++ b/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.h @@ -33,7 +33,7 @@ namespace AZ void ResetPerFrameStatistics(); // Get a string of all threads that this region executed in during the last frame - AZStd::string TableRow::GetExecutingThreadsLabel() const; + AZStd::string GetExecutingThreadsLabel() const; AZStd::string m_groupName; AZStd::string m_regionName; diff --git a/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.inl b/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.inl index d89fed449a..79a2ffd5a0 100644 --- a/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.inl +++ b/Gems/Atom/Utils/Code/Include/Atom/Utils/ImGuiCpuProfiler.inl @@ -180,7 +180,7 @@ namespace AZ ImGui::Text("%.2f", CpuProfilerImGuiHelper::TicksToMs(statistics->m_maxTicks)); ImGui::TableNextColumn(); - ImGui::Text("%ld", statistics->m_invocationsLastFrame); + ImGui::Text("%llu", statistics->m_invocationsLastFrame); ImGui::TableNextColumn(); ImGui::Text("%.2f", CpuProfilerImGuiHelper::TicksToMs(statistics->m_lastFrameTotalTicks));