From 2040ef945f62ff485eb8f3946fb39cf28be73a3a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 14 Nov 2021 02:06:22 +0100 Subject: [PATCH] Color kernel frames in callstack trees. --- server/TracyView.cpp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b0072c1f..b8508eeb 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -17559,6 +17559,7 @@ void View::DrawFrameTreeLevel( const unordered_flat_mapsecond; + const auto isKernel = ( m_worker.GetCanonicalPointer( v.frame ) >> 63 ) != 0; idx++; auto frameDataPtr = m_worker.GetCallstackFrame( v.frame ); if( frameDataPtr ) @@ -17566,15 +17567,24 @@ void View::DrawFrameTreeLevel( const unordered_flat_mapsecond; + const auto isKernel = ( m_worker.GetCanonicalPointer( v.frame ) >> 63 ) != 0; idx++; auto frameDataPtr = m_worker.GetCallstackFrame( v.frame ); if( frameDataPtr ) @@ -17688,12 +17700,20 @@ void View::DrawFrameTreeLevel( const unordered_flat_map