Prechádzať zdrojové kódy

Conform profile markers to recent API changes

Signed-off-by: Jeremy Ong <[email protected]>
Jeremy Ong 4 rokov pred
rodič
commit
d6c0f5f4a0

+ 2 - 2
Gem/Code/Source/SponzaBenchmarkComponent.cpp

@@ -199,7 +199,7 @@ namespace AtomSampleViewer
 
     void SponzaBenchmarkComponent::OnTick(float deltaTime, AZ::ScriptTimePoint timePoint)
     {
-        AZ_PROFILE_DATAPOINT(AZ::Debug::ProfileCategory::AzRender, deltaTime, "Frame Time");
+        AZ_PROFILE_DATAPOINT(AzRender, deltaTime, "Frame Time");
 
         // Camera Configuration
         {
@@ -328,7 +328,7 @@ namespace AtomSampleViewer
             BenchmarkLoadEnd();
         }
 
-        AZ_PROFILE_DATAPOINT(AZ::Debug::ProfileCategory::AzRender, m_currentLoadBenchmarkData.m_totalMBLoaded, "MB Loaded Off Disk");
+        AZ_PROFILE_DATAPOINT(AzRender, m_currentLoadBenchmarkData.m_totalMBLoaded, "MB Loaded Off Disk");
     }
 
     void SponzaBenchmarkComponent::BenchmarkLoadStart()

+ 2 - 2
Gem/Code/Source/Utils/Utils.cpp

@@ -61,7 +61,7 @@ namespace AtomSampleViewer
             using MaskType = AZ::Debug::ProfileCategoryPrimitiveType;
 
             // Set all the category bits "below" Detailed by default
-            static const MaskType defaultCaptureMask = AZ_PROFILE_CAT_TO_RAD_CAPFLAGS(AZ::Debug::ProfileCategory::FirstDetailedCategory) - 1;
+            static const MaskType defaultCaptureMask = AZ_PROFILE_CAT_TO_RAD_CAPFLAGS(FirstDetailedCategory) - 1;
 
             static const char* s_telemetryAddress = "127.0.0.1";
             static int32_t s_telemetryPort = 4719;
@@ -70,7 +70,7 @@ namespace AtomSampleViewer
 
             ProfileTelemetryRequestBus::Broadcast(&ProfileTelemetryRequestBus::Events::SetAddress, s_telemetryAddress, s_telemetryPort);
 
-            const MaskType fullCaptureMask = s_telemetryCaptureMask | (s_memCaptureEnabled ? AZ_PROFILE_CAT_TO_RAD_CAPFLAGS(AZ::Debug::ProfileCategory::MemoryReserved) : 0);
+            const MaskType fullCaptureMask = s_telemetryCaptureMask | (s_memCaptureEnabled ? AZ_PROFILE_CAT_TO_RAD_CAPFLAGS(MemoryReserved) : 0);
             ProfileTelemetryRequestBus::Broadcast(&ProfileTelemetryRequestBus::Events::SetCaptureMask, fullCaptureMask);
 
             ProfileTelemetryRequestBus::Broadcast(&ProfileTelemetryRequestBus::Events::ToggleEnabled);