[atom_cpu_profiler_gem_promotion] quick small changes based on PR feedback

Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
AMZN-ScottR
2021-10-18 17:54:08 -07:00
parent fa4e91b05c
commit 55bca4658f
7 changed files with 15 additions and 18 deletions
@@ -71,11 +71,6 @@ namespace Profiler
m_initialized = true;
AZ::SystemTickBus::Handler::BusConnect();
m_continuousCaptureData.set_capacity(10);
if (auto statsProfiler = AZ::Interface<AZ::Statistics::StatisticalProfilerProxy>::Get(); statsProfiler)
{
statsProfiler->ActivateProfiler(AZ_CRC_CE("RHI"), true);
}
}
void CpuProfilerImpl::Shutdown()
@@ -290,7 +285,7 @@ namespace Profiler
m_cachedTimeRegions.clear();
}
timeRegion.m_stackDepth = static_cast<uint16_t>(m_stackLevel);
timeRegion.m_stackDepth = aznumeric_cast<uint16_t>(m_stackLevel);
AZ_Assert(m_timeRegionStack.size() < TimeRegionStackSize, "Adding too many time regions to the stack. Increase the size of TimeRegionStackSize.");
m_timeRegionStack.push_back(timeRegion);