[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:
@@ -108,8 +108,8 @@ namespace AZ
|
||||
}
|
||||
|
||||
void FixedShapeProcessor::PrepareFrame()
|
||||
{
|
||||
AZ_ATOM_PROFILE_FUNCTION("AuxGeom", "FixedShapeProcessor: PrepareFrame");
|
||||
{
|
||||
AZ_PROFILE_SCOPE(AzRender, "FixedShapeProcessor: PrepareFrame");
|
||||
m_processSrgs.clear();
|
||||
m_drawPackets.clear();
|
||||
|
||||
@@ -127,8 +127,7 @@ namespace AZ
|
||||
|
||||
void FixedShapeProcessor::ProcessObjects(const AuxGeomBufferData* bufferData, const RPI::FeatureProcessor::RenderPacket& fpPacket)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AzRender);
|
||||
AZ_ATOM_PROFILE_FUNCTION("AuxGeom", "FixedShapeProcessor: ProcessObjects");
|
||||
AZ_PROFILE_SCOPE(AzRender, "FixedShapeProcessor: ProcessObjects");
|
||||
|
||||
RHI::DrawPacketBuilder drawPacketBuilder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user