1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-05 06:33:52 +00:00

Display unknown pid as unknown.

This commit is contained in:
Bartosz Taudul 2019-08-18 14:28:56 +02:00
parent faac08865a
commit c5060da185

View File

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