From c5060da1854d112a11ee20205d722f69a36b7dec Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Aug 2019 14:28:56 +0200 Subject: [PATCH] Display unknown pid as unknown. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index fd4584c9..4d879ce8 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -10426,7 +10426,8 @@ void View::DrawCpuDataWindow() for( auto& pidit : psort ) { auto& pid = *pidit; - const auto expand = ImGui::TreeNode( RealToString( pid.first, true ) ); + const auto pidtxt = pid.first == 0 ? "Unknown" : RealToString( pid.first, true ); + const auto expand = ImGui::TreeNode( pidtxt ); ImGui::NextColumn(); ImGui::TextUnformatted( m_worker.GetExternalName( pid.second.tids[0] ).first ); ImGui::NextColumn();