diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index c03cfa63..0b65bd6d 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -80,6 +80,7 @@ struct ZoneEvent int8_t cpu_start; int8_t cpu_end; StringIdx text; + uint32_t callstack; // This must be last. All above is read/saved as-is. Vector child; diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index dc3ac5c2..85861661 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1597,6 +1597,7 @@ void Worker::ProcessZoneBeginImpl( ZoneEvent* zone, const QueueZoneBegin& ev ) zone->srcloc = ShrinkSourceLocation( ev.srcloc ); assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits::max() ); zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu; + zone->callstack = 0; m_data.lastTime = std::max( m_data.lastTime, zone->start ); @@ -1631,6 +1632,7 @@ void Worker::ProcessZoneBeginAllocSrcLoc( const QueueZoneBegin& ev ) zone->srcloc = it->second; assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits::max() ); zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu; + zone->callstack = 0; m_data.lastTime = std::max( m_data.lastTime, zone->start );