mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Display used CPUs as range, if possible.
This commit is contained in:
parent
170aeea864
commit
747f26ef74
@ -267,6 +267,7 @@ int main( int argc, char** argv )
|
|||||||
0x0020, 0x00FF, // Basic Latin + Latin Supplement
|
0x0020, 0x00FF, // Basic Latin + Latin Supplement
|
||||||
0x03BC, 0x03BC, // micro
|
0x03BC, 0x03BC, // micro
|
||||||
0x03C3, 0x03C3, // small sigma
|
0x03C3, 0x03C3, // small sigma
|
||||||
|
0x2013, 0x2013, // en dash
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
static const ImWchar rangesIcons[] = {
|
static const ImWchar rangesIcons[] = {
|
||||||
|
@ -6436,12 +6436,37 @@ void View::DrawZoneInfoWindow()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
int consecutive = 1;
|
||||||
|
int remaining = numCpus;
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
if( cpus[i+consecutive] == 0 ) break;
|
||||||
|
consecutive++;
|
||||||
|
if( --remaining == 0 ) break;
|
||||||
|
}
|
||||||
|
if( consecutive > 2 )
|
||||||
|
{
|
||||||
|
if( remaining == 0 )
|
||||||
|
{
|
||||||
|
ImGui::Text( "%i \xE2\x80\x93 %i", i, i+consecutive-1 );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::Text( "%i \xE2\x80\x93 %i,", i, i+consecutive-1 );
|
||||||
|
i += consecutive - 1;
|
||||||
|
numCpus = remaining;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
ImGui::Text( "%i,", i );
|
ImGui::Text( "%i,", i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
--eit;
|
--eit;
|
||||||
if( ImGui::TreeNode( "Wait regions" ) )
|
if( ImGui::TreeNode( "Wait regions" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user