mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Add thread sorting.
This commit is contained in:
parent
d6b059f0cc
commit
839cf6ef91
@ -599,6 +599,11 @@ void View::DrawOptions()
|
|||||||
m_tc.GetItem( t ).SetVisible( false );
|
m_tc.GetItem( t ).SetVisible( false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
if( ImGui::SmallButton( "Sort" ) )
|
||||||
|
{
|
||||||
|
std::sort( m_threadOrder.begin(), m_threadOrder.end(), [this] ( const auto& lhs, const auto& rhs ) { return strcmp( m_worker.GetThreadName( lhs->id ), m_worker.GetThreadName( rhs->id ) ) < 0; } );
|
||||||
|
}
|
||||||
|
|
||||||
const auto wposx = ImGui::GetCursorScreenPos().x;
|
const auto wposx = ImGui::GetCursorScreenPos().x;
|
||||||
m_threadDnd.clear();
|
m_threadDnd.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user