mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +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:
parent
ec3dcaeef3
commit
ca125bd44c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user