diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 9f4fe86a..bfec4745 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3978,6 +3978,8 @@ void Worker::ProcessGpuNewContext( const QueueGpuNewContext& ev ) void Worker::ProcessGpuZoneBeginImpl( GpuEvent* zone, const QueueGpuZoneBegin& ev ) { + m_data.gpuCnt++; + auto ctx = m_gpuCtxMap[ev.context]; assert( ctx ); @@ -4906,6 +4908,7 @@ void Worker::ReadTimeline( FileRead& f, Vector& vec, uint64_t size, i { assert( size != 0 ); vec.reserve_exact( size, m_slab ); + m_data.gpuCnt += size; auto zone = (GpuEvent*)m_slab.AllocBig( sizeof( GpuEvent ) * size ); auto zptr = zone; auto vptr = vec.data(); @@ -4939,6 +4942,7 @@ void Worker::ReadTimelinePre059( FileRead& f, Vector& vec, uint64_t s { assert( size != 0 ); vec.reserve_exact( size, m_slab ); + m_data.gpuCnt += size; for( uint64_t i=0; i::max(), nullptr ) + : threadDataLast( std::numeric_limits::max(), nullptr ) , ctxSwitchLast( std::numeric_limits::max(), nullptr ) {} @@ -170,10 +166,11 @@ private: StringDiscovery plots; Vector threads; MemData memory; - uint64_t zonesCnt; - int64_t baseTime; - int64_t lastTime; - uint64_t frameOffset; + uint64_t zonesCnt = 0; + uint64_t gpuCnt = 0; + int64_t baseTime = 0; + int64_t lastTime = 0; + uint64_t frameOffset = 0; flat_hash_map> strings; Vector stringData;