Display number of threads for pids in CPU data list.

This commit is contained in:
Bartosz Taudul 2019-09-04 01:43:56 +02:00
parent 0837463f05
commit 57a2b62edc

View File

@ -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();