}
};
+const uint64_t MAX_CHART_DATAPOINTS = 500; // TODO: make this configurable via the GUI
+
struct ParserData final : public AccumulatedTraceData
{
ParserData()
void prepareBuildCharts()
{
+ consumedChartData.rows.reserve(MAX_CHART_DATAPOINTS);
+ allocatedChartData.rows.reserve(MAX_CHART_DATAPOINTS);
+ allocationsChartData.rows.reserve(MAX_CHART_DATAPOINTS);
// start off with null data at the origin
consumedChartData.rows.push_back({});
allocatedChartData.rows.push_back({});
return;
}
maxConsumedSinceLastTimeStamp = max(maxConsumedSinceLastTimeStamp, leaked);
- const uint64_t MAX_CHART_DATAPOINTS = 500; // TODO: make this configurable via the GUI
const uint64_t diffBetweenTimeStamps = totalTime / MAX_CHART_DATAPOINTS;
if (newStamp != totalTime && newStamp - lastTimeStamp < diffBetweenTimeStamps) {
return;