From f773e18375983883ca18064f44fea601a9f953d8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 12 Jun 2021 16:16:56 +0200 Subject: [PATCH] Different color for kernel frames in callstacks. --- server/TracyView.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7f40ba3f..f7122bc4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -13559,6 +13559,10 @@ void View::DrawCallstackWindow() { TextDisabledUnformatted( txt ); } + else if( m_worker.GetCanonicalPointer( entry ) >> 63 != 0 ) + { + TextColoredUnformatted( 0xFF8888FF, txt ); + } else { ImGui::TextUnformatted( txt ); @@ -15678,6 +15682,10 @@ void View::DrawSampleParents() { TextDisabledUnformatted( txt ); } + else if( m_worker.GetCanonicalPointer( entry ) >> 63 != 0 ) + { + TextColoredUnformatted( 0xFF8888FF, txt ); + } else { ImGui::TextUnformatted( txt ); @@ -17445,6 +17453,10 @@ void View::CallstackTooltip( uint32_t idx ) { TextDisabledUnformatted( txt ); } + else if( m_worker.GetCanonicalPointer( entry ) >> 63 != 0 ) + { + TextColoredUnformatted( 0xFF8888FF, txt ); + } else { ImGui::TextUnformatted( txt );