From a68b0921b188c5f3f7cb67f48e81e32828843904 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Sep 2017 15:41:26 +0200 Subject: [PATCH] Add parent pointer to Event. --- server/TracyEvent.hpp | 1 + server/TracyView.cpp | 1 + 2 files changed, 2 insertions(+) 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 );