Create first memory plot data point at first time.

This commit is contained in:
Bartosz Taudul 2023-03-03 22:42:10 +01:00
parent 3ff158c8be
commit 28199512cd
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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++;