mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Don't load vector size twice.
This commit is contained in:
parent
02d200878d
commit
759fd15c03
@ -2757,14 +2757,15 @@ void Worker::NewZone( ZoneEvent* zone, uint64_t thread )
|
||||
auto td = m_threadCtxData;
|
||||
if( !td ) td = m_threadCtxData = NoticeThread( thread );
|
||||
td->count++;
|
||||
if( td->stack.empty() )
|
||||
const auto ssz = td->stack.size();
|
||||
if( ssz == 0 )
|
||||
{
|
||||
td->stack.push_back( zone );
|
||||
td->timeline.push_back( zone );
|
||||
}
|
||||
else
|
||||
{
|
||||
auto& back = td->stack.back();
|
||||
auto& back = td->stack.data()[ssz-1];
|
||||
if( !back->HasChildren() )
|
||||
{
|
||||
back->SetChild( int32_t( m_data.zoneChildren.size() ) );
|
||||
|
Loading…
Reference in New Issue
Block a user