From 28199512cd862b11233ad48e5843cb89aa9383ff Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 3 Mar 2023 22:42:10 +0100 Subject: [PATCH] Create first memory plot data point at first time. --- server/TracyWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 0487c1fe..05b8007b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -6983,7 +6983,7 @@ void Worker::CreateMemAllocPlot( MemData& memdata ) memdata.plot->showSteps = true; memdata.plot->fill = true; memdata.plot->color = 0; - memdata.plot->data.push_back( { GetFrameBegin( *m_data.framesBase, 0 ), 0. } ); + memdata.plot->data.push_back( { GetFirstTime(), 0. } ); m_data.plots.Data().push_back( memdata.plot ); } @@ -7021,7 +7021,7 @@ void Worker::ReconstructMemAllocPlot( MemData& mem ) double usage = 0; auto ptr = plot->data.data(); - ptr->time = GetFrameBegin( *m_data.framesBase, 0 ); + ptr->time = GetFirstTime(); ptr->val = 0; ptr++;