From a96410547be80c111fdd36ef2296106f51dff718 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 17 Jun 2021 01:56:16 +0200 Subject: [PATCH] Display thread kernel time. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 1e950143..cf8f8117 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3526,6 +3526,12 @@ void View::DrawZones() if( !v->samples.empty() ) { TextFocused( "Call stack samples:", RealToString( v->samples.size() ) ); + if( v->kernelSampleCnt != 0 ) + { + TextFocused( "Kernel samples:", RealToString( v->kernelSampleCnt ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", 100.f * v->kernelSampleCnt / v->samples.size() ); + } } ImGui::EndTooltip();