From d0b6869e9eb315d87c568ca8f153325c48fe04f9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 23:35:39 +0200 Subject: [PATCH] Sym must be valid. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index f25d0c46..61d85968 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -295,16 +295,16 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct auto namehash = charutil::hash( name ); if( namehash == 0 ) namehash++; color = GetHsvColor( namehash, depth ); + if( sym->isInline ) + { + color = DarkenColorHalf( color ); + } } else { name = "???"; color = 0xFF888888; } - if( sym->isInline ) - { - color = DarkenColorHalf( color ); - } } const auto hiColor = HighlightColor( color );