From a79be0443919a235e094df5fcbd191a124eea3ca Mon Sep 17 00:00:00 2001 From: bart hawthorne Date: Wed, 3 Apr 2019 21:51:45 -0400 Subject: [PATCH] Compile out some csv profiler ensures in shipping builds [FYI] ben.woodhouse #ROBOMERGE-OWNER: ben.marsh #ROBOMERGE-AUTHOR: bart.hawthorne #ROBOMERGE-SOURCE: CL 5713957 via CL 5713961 via CL 5714341 via CL 5714931 via CL 5716577 via CL 5716660 #ROBOMERGE-BOT: BUILD (Main -> Dev-Build) [CL 5722698 by bart hawthorne in Dev-Build branch] --- .../Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp b/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp index b2377042b93f..0b13cb245941 100644 --- a/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp +++ b/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp @@ -2013,7 +2013,9 @@ void FCsvProfilerThreadDataProcessor::Process(FCsvProcessThreadDataStats& OutSta if (ThreadMarkers.Num() > 0) { +#if !UE_BUILD_SHIPPING ensure(ThreadMarkers[0].GetTimestamp() >= LastProcessedTimestamp); +#endif LastProcessedTimestamp = ThreadMarkers.Last().GetTimestamp(); } @@ -2108,8 +2110,10 @@ void FCsvProfilerThreadDataProcessor::Process(FCsvProcessThreadDataStats& OutSta // AEnd would be missing if (FrameNumber >= 0 && bFoundStart) { +#if !UE_BUILD_SHIPPING ensure(Marker.RawStatID == StartMarker.RawStatID); ensure(Marker.GetTimestamp() >= StartMarker.GetTimestamp()); +#endif if (Marker.GetTimestamp() > StartMarker.GetTimestamp()) { uint64 ElapsedCycles = Marker.GetTimestamp() - StartMarker.GetTimestamp();