mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add parent pointer to Event.
This commit is contained in:
parent
cdab2297ef
commit
a68b0921b1
@ -12,6 +12,7 @@ struct Event
|
||||
int64_t end;
|
||||
uint32_t srcloc;
|
||||
|
||||
Event* parent;
|
||||
Vector<Event*> child;
|
||||
};
|
||||
|
||||
|
@ -224,6 +224,7 @@ void View::ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev )
|
||||
{
|
||||
auto it = m_pendingEndZone.find( id );
|
||||
auto zone = m_slab.Alloc<Event>();
|
||||
zone->parent = nullptr;
|
||||
|
||||
CheckString( ev.filename );
|
||||
CheckString( ev.function );
|
||||
|
Loading…
Reference in New Issue
Block a user