| Index: webrtc/tools/event_log_visualizer/plot_base.h
|
| diff --git a/webrtc/tools/event_log_visualizer/plot_base.h b/webrtc/tools/event_log_visualizer/plot_base.h
|
| index b2ab299a58ba73fa1f6181a4ff55efad4be82bc7..afa20beaf8c82f78b5d7b97d6312a09ede95edb5 100644
|
| --- a/webrtc/tools/event_log_visualizer/plot_base.h
|
| +++ b/webrtc/tools/event_log_visualizer/plot_base.h
|
| @@ -34,10 +34,9 @@ struct TimeSeriesPoint {
|
|
|
| struct TimeSeries {
|
| TimeSeries() = default;
|
| - TimeSeries(const char* label, PlotStyle style)
|
| - : label(label), style(style), points() {}
|
| + TimeSeries(const char* label, PlotStyle style) : label(label), style(style) {}
|
| TimeSeries(const std::string& label, PlotStyle style)
|
| - : label(label), style(style), points() {}
|
| + : label(label), style(style) {}
|
| TimeSeries(TimeSeries&& other)
|
| : label(std::move(other.label)),
|
| style(other.style),
|
| @@ -108,10 +107,7 @@ class Plot {
|
| void SetTitle(std::string title);
|
|
|
| // Add a new TimeSeries to the plot.
|
| - TimeSeries* AddTimeSeries(const char* label, PlotStyle style);
|
| - TimeSeries* AddTimeSeries(const std::string& label, PlotStyle style);
|
| -
|
| - std::vector<TimeSeries> series_list_;
|
| + void AppendTimeSeries(TimeSeries&& time_series);
|
|
|
| protected:
|
| float xaxis_min_;
|
| @@ -121,6 +117,7 @@ class Plot {
|
| float yaxis_max_;
|
| std::string yaxis_label_;
|
| std::string title_;
|
| + std::vector<TimeSeries> series_list_;
|
| };
|
|
|
| class PlotCollection {
|
|
|