mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Create first memory plot data point at first time.
This commit is contained in:
parent
3ff158c8be
commit
28199512cd
@ -6983,7 +6983,7 @@ void Worker::CreateMemAllocPlot( MemData& memdata )
|
|||||||
memdata.plot->showSteps = true;
|
memdata.plot->showSteps = true;
|
||||||
memdata.plot->fill = true;
|
memdata.plot->fill = true;
|
||||||
memdata.plot->color = 0;
|
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 );
|
m_data.plots.Data().push_back( memdata.plot );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7021,7 +7021,7 @@ void Worker::ReconstructMemAllocPlot( MemData& mem )
|
|||||||
double usage = 0;
|
double usage = 0;
|
||||||
|
|
||||||
auto ptr = plot->data.data();
|
auto ptr = plot->data.data();
|
||||||
ptr->time = GetFrameBegin( *m_data.framesBase, 0 );
|
ptr->time = GetFirstTime();
|
||||||
ptr->val = 0;
|
ptr->val = 0;
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user