mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Callstack is already zero-initialized.
This commit is contained in:
parent
45332fd837
commit
721f3c8925
@ -3379,7 +3379,6 @@ void Worker::ProcessZoneBeginImpl( ZoneEvent* zone, const QueueZoneBegin& ev )
|
|||||||
zone->SetStart( start );
|
zone->SetStart( start );
|
||||||
zone->SetEnd( -1 );
|
zone->SetEnd( -1 );
|
||||||
zone->SetSrcLoc( ShrinkSourceLocation( ev.srcloc ) );
|
zone->SetSrcLoc( ShrinkSourceLocation( ev.srcloc ) );
|
||||||
zone->callstack.SetVal( 0 );
|
|
||||||
zone->SetChild( -1 );
|
zone->SetChild( -1 );
|
||||||
|
|
||||||
m_data.lastTime = std::max( m_data.lastTime, start );
|
m_data.lastTime = std::max( m_data.lastTime, start );
|
||||||
@ -3414,7 +3413,6 @@ void Worker::ProcessZoneBeginAllocSrcLocImpl( ZoneEvent* zone, const QueueZoneBe
|
|||||||
zone->SetStart( start );
|
zone->SetStart( start );
|
||||||
zone->SetEnd( -1 );
|
zone->SetEnd( -1 );
|
||||||
zone->SetSrcLoc( it->second );
|
zone->SetSrcLoc( it->second );
|
||||||
zone->callstack.SetVal( 0 );
|
|
||||||
zone->SetChild( -1 );
|
zone->SetChild( -1 );
|
||||||
|
|
||||||
m_data.lastTime = std::max( m_data.lastTime, start );
|
m_data.lastTime = std::max( m_data.lastTime, start );
|
||||||
|
Loading…
Reference in New Issue
Block a user