mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Display number of threads for pids in CPU data list.
This commit is contained in:
parent
0837463f05
commit
57a2b62edc
@ -10678,6 +10678,12 @@ void View::DrawCpuDataWindow()
|
|||||||
}
|
}
|
||||||
const auto pidtxt = pid.first == 0 ? "Unknown" : RealToString( pid.first, true );
|
const auto pidtxt = pid.first == 0 ? "Unknown" : RealToString( pid.first, true );
|
||||||
const auto expand = ImGui::TreeNode( pidtxt );
|
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::NextColumn();
|
||||||
ImGui::TextUnformatted( pid.first == 0 ? "???" : name );
|
ImGui::TextUnformatted( pid.first == 0 ? "???" : name );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user