From b676406878813d68819eba54284d3b22c2c37d94 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2024 19:44:36 +0200 Subject: [PATCH] Assert on parent name being null. --- profiler/src/profiler/TracyView_Samples.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiler/src/profiler/TracyView_Samples.cpp b/profiler/src/profiler/TracyView_Samples.cpp index ab29117b..7f2f02c1 100644 --- a/profiler/src/profiler/TracyView_Samples.cpp +++ b/profiler/src/profiler/TracyView_Samples.cpp @@ -391,6 +391,10 @@ void View::DrawSamplesStatistics( Vector& data, int64_t timeRange, Accu const auto topName = m_worker.GetString( symMap.find( inSymList[0].symAddr )->second.name ); if( topName != name ) { + // Parent name at this point should only be enabled if m_statSeparateInlines + // is enabled. These two code paths should be mutually exclusive. + assert( !parentName ); + parentName = name; name = topName; }