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

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

Issue 2782553005: Visualize events related to probing in the total bitrate graph. (Closed)
Patch Set: GRAPH --> CHART Created 3 years, 8 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 22 matching lines...) Expand all
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) { 41 } else if (series_list_[i].style == LINE_STEP_GRAPH) {
42 data_set->set_style(webrtc::analytics::ChartStyle::LINE_STEP_CHART); 42 data_set->set_style(webrtc::analytics::ChartStyle::LINE_STEP_CHART);
43 } else if (series_list_[i].style == DOT_GRAPH) {
44 data_set->set_style(webrtc::analytics::ChartStyle::SCATTER_CHART);
45 data_set->set_highlight_points(true);
43 } else { 46 } else {
44 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED); 47 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED);
45 } 48 }
46 49
47 data_set->set_label(series_list_[i].label); 50 data_set->set_label(series_list_[i].label);
48 } 51 }
49 52
50 chart->set_xaxis_min(xaxis_min_); 53 chart->set_xaxis_min(xaxis_min_);
51 chart->set_xaxis_max(xaxis_max_); 54 chart->set_xaxis_max(xaxis_max_);
52 chart->set_yaxis_min(yaxis_min_); 55 chart->set_yaxis_min(yaxis_min_);
(...skipping 23 matching lines...) Expand all
76 } 79 }
77 80
78 Plot* ProtobufPlotCollection::AppendNewPlot() { 81 Plot* ProtobufPlotCollection::AppendNewPlot() {
79 Plot* plot = new ProtobufPlot(); 82 Plot* plot = new ProtobufPlot();
80 plots_.push_back(std::unique_ptr<Plot>(plot)); 83 plots_.push_back(std::unique_ptr<Plot>(plot));
81 return plot; 84 return plot;
82 } 85 }
83 86
84 } // namespace plotting 87 } // namespace plotting
85 } // namespace webrtc 88 } // 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