Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: webrtc/tools/event_log_visualizer/plot_protobuf.cc

Issue 2653343004: Add new step graph type to event log visualization tool (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 20 matching lines...) Expand all
31 data_set->add_y_values(point.y); 31 data_set->add_y_values(point.y);
32 } 32 }
33 33
34 if (series_list_[i].style == BAR_GRAPH) { 34 if (series_list_[i].style == BAR_GRAPH) {
35 data_set->set_style(webrtc::analytics::ChartStyle::BAR_CHART); 35 data_set->set_style(webrtc::analytics::ChartStyle::BAR_CHART);
36 } else if (series_list_[i].style == LINE_GRAPH) { 36 } else if (series_list_[i].style == LINE_GRAPH) {
37 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); 37 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART);
38 } else if (series_list_[i].style == LINE_DOT_GRAPH) { 38 } else if (series_list_[i].style == LINE_DOT_GRAPH) {
39 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); 39 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART);
40 data_set->set_highlight_points(true); 40 data_set->set_highlight_points(true);
41 } else if (series_list_[i].style == LINE_STEP_GRAPH) {
42 data_set->set_style(webrtc::analytics::ChartStyle::LINE_STEP_CHART);
41 } else { 43 } else {
42 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED); 44 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED);
43 } 45 }
44 46
45 data_set->set_label(series_list_[i].label); 47 data_set->set_label(series_list_[i].label);
46 } 48 }
47 49
48 chart->set_xaxis_min(xaxis_min_); 50 chart->set_xaxis_min(xaxis_min_);
49 chart->set_xaxis_max(xaxis_max_); 51 chart->set_xaxis_max(xaxis_max_);
50 chart->set_yaxis_min(yaxis_min_); 52 chart->set_yaxis_min(yaxis_min_);
(...skipping 23 matching lines...) Expand all
74 } 76 }
75 77
76 Plot* ProtobufPlotCollection::AppendNewPlot() { 78 Plot* ProtobufPlotCollection::AppendNewPlot() {
77 Plot* plot = new ProtobufPlot(); 79 Plot* plot = new ProtobufPlot();
78 plots_.push_back(std::unique_ptr<Plot>(plot)); 80 plots_.push_back(std::unique_ptr<Plot>(plot));
79 return plot; 81 return plot;
80 } 82 }
81 83
82 } // namespace plotting 84 } // namespace plotting
83 } // namespace webrtc 85 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/plot_base.h ('k') | webrtc/tools/event_log_visualizer/plot_python.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698