mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 16:03:53 +00:00
Show thread color boxes in find zone menu.
This commit is contained in:
parent
06fe469598
commit
e9b815a3b8
@ -8407,8 +8407,14 @@ void View::DrawFindZone()
|
|||||||
switch( groupBy )
|
switch( groupBy )
|
||||||
{
|
{
|
||||||
case FindZone::GroupBy::Thread:
|
case FindZone::GroupBy::Thread:
|
||||||
hdrString = m_worker.GetThreadName( m_worker.DecompressThread( v->first ) );
|
{
|
||||||
|
const auto tid = m_worker.DecompressThread( v->first );
|
||||||
|
const auto threadColor = GetThreadColor( tid, 0 );
|
||||||
|
SmallColorBox( threadColor );
|
||||||
|
ImGui::SameLine();
|
||||||
|
hdrString = m_worker.GetThreadName( tid );
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case FindZone::GroupBy::UserText:
|
case FindZone::GroupBy::UserText:
|
||||||
hdrString = v->first == std::numeric_limits<uint64_t>::max() ? "No user text" : m_worker.GetString( StringIdx( v->first ) );
|
hdrString = v->first == std::numeric_limits<uint64_t>::max() ? "No user text" : m_worker.GetString( StringIdx( v->first ) );
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user