mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Keep zone begin implementations together.
This commit is contained in:
parent
5a8d30ddc3
commit
44020487d2
@ -4342,6 +4342,24 @@ void Worker::ProcessZoneBeginImpl( ZoneEvent* zone, const QueueZoneBegin& ev )
|
||||
NewZone( zone, m_threadCtx );
|
||||
}
|
||||
|
||||
void Worker::ProcessZoneBeginAllocSrcLocImpl( ZoneEvent* zone, const QueueZoneBeginLean& ev )
|
||||
{
|
||||
assert( m_pendingSourceLocationPayload != 0 );
|
||||
|
||||
const auto refTime = m_refTimeThread + ev.time;
|
||||
m_refTimeThread = refTime;
|
||||
const auto start = TscTime( refTime - m_data.baseTime );
|
||||
zone->SetStartSrcLoc( start, m_pendingSourceLocationPayload );
|
||||
zone->SetEnd( -1 );
|
||||
zone->SetChild( -1 );
|
||||
|
||||
if( m_data.lastTime < start ) m_data.lastTime = start;
|
||||
|
||||
NewZone( zone, m_threadCtx );
|
||||
|
||||
m_pendingSourceLocationPayload = 0;
|
||||
}
|
||||
|
||||
ZoneEvent* Worker::AllocZoneEvent()
|
||||
{
|
||||
ZoneEvent* ret;
|
||||
@ -4378,24 +4396,6 @@ void Worker::ProcessZoneBeginCallstack( const QueueZoneBegin& ev )
|
||||
it->second = 0;
|
||||
}
|
||||
|
||||
void Worker::ProcessZoneBeginAllocSrcLocImpl( ZoneEvent* zone, const QueueZoneBeginLean& ev )
|
||||
{
|
||||
assert( m_pendingSourceLocationPayload != 0 );
|
||||
|
||||
const auto refTime = m_refTimeThread + ev.time;
|
||||
m_refTimeThread = refTime;
|
||||
const auto start = TscTime( refTime - m_data.baseTime );
|
||||
zone->SetStartSrcLoc( start, m_pendingSourceLocationPayload );
|
||||
zone->SetEnd( -1 );
|
||||
zone->SetChild( -1 );
|
||||
|
||||
if( m_data.lastTime < start ) m_data.lastTime = start;
|
||||
|
||||
NewZone( zone, m_threadCtx );
|
||||
|
||||
m_pendingSourceLocationPayload = 0;
|
||||
}
|
||||
|
||||
void Worker::ProcessZoneBeginAllocSrcLoc( const QueueZoneBeginLean& ev )
|
||||
{
|
||||
auto zone = AllocZoneEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user