Add parent pointer to Event.

This commit is contained in:
Bartosz Taudul 2017-09-23 15:41:26 +02:00
parent cdab2297ef
commit a68b0921b1
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ struct Event
int64_t end; int64_t end;
uint32_t srcloc; uint32_t srcloc;
Event* parent;
Vector<Event*> child; Vector<Event*> child;
}; };

View File

@ -224,6 +224,7 @@ void View::ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev )
{ {
auto it = m_pendingEndZone.find( id ); auto it = m_pendingEndZone.find( id );
auto zone = m_slab.Alloc<Event>(); auto zone = m_slab.Alloc<Event>();
zone->parent = nullptr;
CheckString( ev.filename ); CheckString( ev.filename );
CheckString( ev.function ); CheckString( ev.function );