[development] Migrated Atom CPU profiler to utilize new AzCore Profiler interface and related macros (#4160)
- Added new interface type AZ::Debug::Profiler to externally register profiler systems - Modified the Atom CPU profiler to register as an AzCore profiler -- This allows full engine markers to be visualized in the associated ImGui tool - Converted all AZ_ATOM_PROFILE_* macros to use AZ_PROFILE_* macros instead Signed-off-by: AMZN-ScottR 24445312+AMZN-ScottR@users.noreply.github.com
This commit is contained in:
@@ -486,7 +486,7 @@ namespace AZ::Render
|
||||
|
||||
void ProjectedShadowFeatureProcessor::Simulate(const FeatureProcessor::SimulatePacket& /*packet*/)
|
||||
{
|
||||
AZ_ATOM_PROFILE_FUNCTION("RPI", "ProjectedShadowFeatureProcessor: Simulate");
|
||||
AZ_PROFILE_SCOPE(RPI, "ProjectedShadowFeatureProcessor: Simulate");
|
||||
|
||||
if (m_shadowmapPassNeedsUpdate)
|
||||
{
|
||||
@@ -581,7 +581,7 @@ namespace AZ::Render
|
||||
|
||||
void ProjectedShadowFeatureProcessor::Render(const ProjectedShadowFeatureProcessor::RenderPacket& packet)
|
||||
{
|
||||
AZ_ATOM_PROFILE_FUNCTION("RPI", "ProjectedShadowFeatureProcessor: Render");
|
||||
AZ_PROFILE_SCOPE(RPI, "ProjectedShadowFeatureProcessor: Render");
|
||||
|
||||
if (!m_projectedShadowmapsPasses.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user