mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-14 23:29:41 +00:00
Collapse Tracy threads by default.
Note that this will likely work only when loading existing traces. In live captures the thread name may not have yet been retrieved at the point when timeline item insertion occurs, which will prevent the check from succeeding.
This commit is contained in:
@@ -16,6 +16,11 @@ TimelineItemThread::TimelineItemThread( View& view, Worker& worker, const Thread
|
||||
, m_thread( thread )
|
||||
, m_ghost( false )
|
||||
{
|
||||
auto name = worker.GetThreadName( thread->id );
|
||||
if( strncmp( name, "Tracy ", 6 ) == 0 )
|
||||
{
|
||||
m_showFull = false;
|
||||
}
|
||||
}
|
||||
|
||||
bool TimelineItemThread::IsEmpty() const
|
||||
|
||||
Reference in New Issue
Block a user