mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34: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;
|
int64_t end;
|
||||||
uint32_t srcloc;
|
uint32_t srcloc;
|
||||||
|
|
||||||
|
Event* parent;
|
||||||
Vector<Event*> child;
|
Vector<Event*> child;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user