From f9b19631c0a94b7c2efcee37a9cfd3cefcbcc302 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 13 Feb 2020 00:37:54 +0100 Subject: [PATCH] Read memory data in one go. --- server/TracyWorker.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index dcefb9ad..7b1b2869 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1156,13 +1156,12 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) s_loadProgress.subProgress.store( i, std::memory_order_relaxed ); uint64_t ptr, size; Int24 csAlloc; - f.Read4( ptr, size, csAlloc, mem->csFree ); + int64_t timeAlloc, timeFree; + uint16_t threadAlloc, threadFree; + f.Read8( ptr, size, csAlloc, mem->csFree, timeAlloc, timeFree, threadAlloc, threadFree ); mem->SetPtr( ptr ); mem->SetSize( size ); mem->SetCsAlloc( csAlloc.Val() ); - int64_t timeAlloc, timeFree; - uint16_t threadAlloc, threadFree; - f.Read4( timeAlloc, timeFree, threadAlloc, threadFree ); refTime += timeAlloc; mem->SetTimeAlloc( refTime ); if( timeFree >= 0 )