From 467d67526248ae41409d80e077b5bd8fc8d5af58 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 9 Nov 2019 00:08:26 +0100 Subject: [PATCH] Zone reads can be merged. --- server/TracyWorker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 1c15e04e..61c7f86b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5176,9 +5176,7 @@ void Worker::ReadTimeline( FileRead& f, Vector>& vec, uint6 f.Read( srcloc ); zone->SetSrcLoc( srcloc ); // Use zone->_end_child1 as scratch buffer for zone start time offset. - f.Read( &zone->_end_child1, sizeof( zone->_end_child1 ) + sizeof( zone->text ) ); - f.Read( &zone->callstack, sizeof( zone->callstack ) ); - f.Read( &zone->name, sizeof( zone->name ) ); + f.Read( &zone->_end_child1, sizeof( zone->_end_child1 ) + sizeof( zone->text ) + sizeof( zone->callstack ) + sizeof( zone->name ) ); refTime += int64_t( zone->_end_child1 ); zone->SetStart( refTime ); ReadTimeline( f, zone, refTime, childIdx );