mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-25 04:28:22 +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:
@@ -39,12 +39,13 @@ protected:
|
||||
|
||||
virtual bool IsEmpty() const { return false; }
|
||||
|
||||
bool m_visible;
|
||||
bool m_showFull;
|
||||
|
||||
private:
|
||||
void AdjustThreadHeight( bool firstFrame, int oldOffset, int& offset );
|
||||
float AdjustThreadPosition( float wy, int& offset );
|
||||
|
||||
bool m_visible;
|
||||
bool m_showFull;
|
||||
int m_height;
|
||||
int m_offset;
|
||||
|
||||
|
||||
@@ -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