diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 2d411662..ae97521b 100755 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -12,6 +12,7 @@ struct Event int64_t end; uint32_t srcloc; + Event* parent; Vector child; }; diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 75803915..065e0f1b 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -224,6 +224,7 @@ void View::ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev ) { auto it = m_pendingEndZone.find( id ); auto zone = m_slab.Alloc(); + zone->parent = nullptr; CheckString( ev.filename ); CheckString( ev.function );