mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Use ordered thread vector in message list.
This commit is contained in:
parent
a633c50991
commit
f7eca24e18
@ -5697,7 +5697,7 @@ void View::DrawMessages()
|
|||||||
ImGui::Begin( "Messages", &m_showMessages );
|
ImGui::Begin( "Messages", &m_showMessages );
|
||||||
|
|
||||||
size_t tsz = 0;
|
size_t tsz = 0;
|
||||||
for( const auto& t : m_worker.GetThreadData() ) if( !t->messages.empty() ) tsz++;
|
for( const auto& t : m_threadOrder ) if( !t->messages.empty() ) tsz++;
|
||||||
|
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
auto expand = ImGui::TreeNode( ICON_FA_RANDOM " Visible threads:" );
|
auto expand = ImGui::TreeNode( ICON_FA_RANDOM " Visible threads:" );
|
||||||
@ -5712,7 +5712,7 @@ void View::DrawMessages()
|
|||||||
|
|
||||||
if( ImGui::SmallButton( "Select all" ) )
|
if( ImGui::SmallButton( "Select all" ) )
|
||||||
{
|
{
|
||||||
for( const auto& t : m_worker.GetThreadData() )
|
for( const auto& t : m_threadOrder )
|
||||||
{
|
{
|
||||||
VisibleMsgThread( t->id ) = true;
|
VisibleMsgThread( t->id ) = true;
|
||||||
}
|
}
|
||||||
@ -5720,14 +5720,14 @@ void View::DrawMessages()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if( ImGui::SmallButton( "Unselect all" ) )
|
if( ImGui::SmallButton( "Unselect all" ) )
|
||||||
{
|
{
|
||||||
for( const auto& t : m_worker.GetThreadData() )
|
for( const auto& t : m_threadOrder )
|
||||||
{
|
{
|
||||||
VisibleMsgThread( t->id ) = false;
|
VisibleMsgThread( t->id ) = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for( const auto& t : m_worker.GetThreadData() )
|
for( const auto& t : m_threadOrder )
|
||||||
{
|
{
|
||||||
if( t->messages.empty() ) continue;
|
if( t->messages.empty() ) continue;
|
||||||
ImGui::PushID( idx++ );
|
ImGui::PushID( idx++ );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user