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]
This commit is contained in:
bart hawthorne
2019-04-03 21:51:45 -04:00
parent 55186f0ee8
commit a79be04439

View File

@@ -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();