From c0a2e9b3f70182821f25cde53caf260851825e19 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 13 Feb 2020 00:54:54 +0100 Subject: [PATCH] Ditto during capture. --- server/TracyWorker.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 86c8e802..aa613ce8 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -4411,10 +4411,8 @@ void Worker::ProcessMemAlloc( const QueueMemAlloc& ev ) auto& mem = m_data.memory.data.push_next(); mem.SetPtr( ptr ); mem.SetSize( size ); - mem.SetTimeAlloc( time ); - mem.SetThreadAlloc( CompressThread( ev.thread ) ); - mem.SetTimeFree( -1 ); - mem.SetThreadFree( 0 ); + mem.SetTimeThreadAlloc( time, CompressThread( ev.thread ) ); + mem.SetTimeThreadFree( -1, 0 ); mem.SetCsAlloc( 0 ); mem.csFree.SetVal( 0 ); @@ -4452,8 +4450,7 @@ bool Worker::ProcessMemFree( const QueueMemFree& ev ) m_data.memory.frees.push_back( it->second ); auto& mem = m_data.memory.data[it->second]; - mem.SetTimeFree( time ); - mem.SetThreadFree( CompressThread( ev.thread ) ); + mem.SetTimeThreadFree( time, CompressThread( ev.thread ) ); m_data.memory.usage -= mem.Size(); m_data.memory.active.erase( it );