mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Set appropriate flags for CPU data table columns.
This commit is contained in:
parent
dee6395acf
commit
e33f8e66d5
@ -14880,11 +14880,11 @@ void View::DrawCpuDataWindow()
|
|||||||
if( ImGui::BeginTable( "##cpudata", 5, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_ScrollY ) )
|
if( ImGui::BeginTable( "##cpudata", 5, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_ScrollY ) )
|
||||||
{
|
{
|
||||||
ImGui::TableSetupScrollFreeze( 0, 1 );
|
ImGui::TableSetupScrollFreeze( 0, 1 );
|
||||||
ImGui::TableSetupColumn( "PID/TID" );
|
ImGui::TableSetupColumn( "PID/TID", ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize );
|
||||||
ImGui::TableSetupColumn( "Name" );
|
ImGui::TableSetupColumn( "Name" );
|
||||||
ImGui::TableSetupColumn( "Running time", ImGuiTableColumnFlags_PreferSortDescending );
|
ImGui::TableSetupColumn( "Running time", ImGuiTableColumnFlags_PreferSortDescending );
|
||||||
ImGui::TableSetupColumn( "Running regions", ImGuiTableColumnFlags_PreferSortDescending );
|
ImGui::TableSetupColumn( "Running regions", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize );
|
||||||
ImGui::TableSetupColumn( "CPU migrations", ImGuiTableColumnFlags_PreferSortDescending );
|
ImGui::TableSetupColumn( "CPU migrations", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize );
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
|
|
||||||
std::vector<unordered_flat_map<uint64_t, PidData>::iterator> psort;
|
std::vector<unordered_flat_map<uint64_t, PidData>::iterator> psort;
|
||||||
|
Loading…
Reference in New Issue
Block a user