mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Manual ZoneEvent vector initialization.
This commit is contained in:
@@ -615,7 +615,8 @@ void View::Process( const QueueItem& ev )
|
||||
|
||||
void View::ProcessZoneBegin( const QueueZoneBegin& ev )
|
||||
{
|
||||
auto zone = m_slab.AllocInit<ZoneEvent>();
|
||||
auto zone = m_slab.Alloc<ZoneEvent>();
|
||||
zone->Init();
|
||||
|
||||
CheckSourceLocation( ev.srcloc );
|
||||
|
||||
@@ -636,7 +637,8 @@ void View::ProcessZoneBeginAllocSrcLoc( const QueueZoneBegin& ev )
|
||||
auto it = m_pendingSourceLocationPayload.find( ev.srcloc );
|
||||
assert( it != m_pendingSourceLocationPayload.end() );
|
||||
|
||||
auto zone = m_slab.AllocInit<ZoneEvent>();
|
||||
auto zone = m_slab.Alloc<ZoneEvent>();
|
||||
zone->Init();
|
||||
|
||||
zone->start = ev.time * m_timerMul;
|
||||
zone->end = -1;
|
||||
@@ -3845,7 +3847,9 @@ void View::ReadTimeline( FileRead& f, Vector<ZoneEvent*>& vec )
|
||||
|
||||
for( uint64_t i=0; i<sz; i++ )
|
||||
{
|
||||
auto zone = m_slab.AllocInit<ZoneEvent>();
|
||||
auto zone = m_slab.Alloc<ZoneEvent>();
|
||||
zone->Init();
|
||||
|
||||
m_zonesCnt++;
|
||||
vec.push_back( zone );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user