mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Use custom vector to store plot items.
This commit is contained in:
parent
0519df4dfc
commit
6e4343c043
@ -1021,7 +1021,7 @@ void View::InsertPlot( PlotData* plot, int64_t time, double val )
|
|||||||
if( plot->min > val ) plot->min = val;
|
if( plot->min > val ) plot->min = val;
|
||||||
else if( plot->max < val ) plot->max = val;
|
else if( plot->max < val ) plot->max = val;
|
||||||
}
|
}
|
||||||
plot->data.emplace_back( PlotItem { time, val } );
|
plot->data.push_back( PlotItem { time, val } );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,7 @@ private:
|
|||||||
double min;
|
double min;
|
||||||
double max;
|
double max;
|
||||||
bool enabled;
|
bool enabled;
|
||||||
std::vector<PlotItem> data;
|
Vector<PlotItem> data;
|
||||||
};
|
};
|
||||||
|
|
||||||
void Worker();
|
void Worker();
|
||||||
|
Loading…
Reference in New Issue
Block a user