From 57a2b62edc74effa11343afe6f29d88c6e5a63a0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 4 Sep 2019 01:43:56 +0200 Subject: [PATCH] Display number of threads for pids in CPU data list. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index be678d7d..4d473a56 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -10678,6 +10678,12 @@ void View::DrawCpuDataWindow() } const auto pidtxt = pid.first == 0 ? "Unknown" : RealToString( pid.first, true ); const auto expand = ImGui::TreeNode( pidtxt ); + const auto tsz = pid.second.tids.size(); + if( tsz > 1 ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s)", RealToString( tsz, true ) ); + } ImGui::NextColumn(); ImGui::TextUnformatted( pid.first == 0 ? "???" : name ); ImGui::NextColumn();