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

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

Issue 2808833002: Delay based logging. (Closed)
Patch Set: Unittest fix. 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
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // elements except the first in x and the last in y. 71 // elements except the first in x and the last in y.
72 printf("x%zu = [v for dup in x%zu for v in [dup, dup]]\n", i, i); 72 printf("x%zu = [v for dup in x%zu for v in [dup, dup]]\n", i, i);
73 printf("y%zu = [v for dup in y%zu for v in [dup, dup]]\n", i, i); 73 printf("y%zu = [v for dup in y%zu for v in [dup, dup]]\n", i, i);
74 printf( 74 printf(
75 "plt.plot(x%zu[1:], y%zu[:-1], color=rgb_colors[%zu], " 75 "plt.plot(x%zu[1:], y%zu[:-1], color=rgb_colors[%zu], "
76 "label=\'%s\')\n", 76 "label=\'%s\')\n",
77 i, i, i, series_list_[i].label.c_str()); 77 i, i, i, series_list_[i].label.c_str());
78 } else if (series_list_[i].style == DOT_GRAPH) { 78 } else if (series_list_[i].style == DOT_GRAPH) {
79 printf( 79 printf(
80 "plt.plot(x%zu, y%zu, color=rgb_colors[%zu], label=\'%s\', " 80 "plt.plot(x%zu, y%zu, color=rgb_colors[%zu], label=\'%s\', "
81 "marker='.', ls=' ')\n", 81 "marker='o', ls=' ')\n",
82 i, i, i, series_list_[i].label.c_str()); 82 i, i, i, series_list_[i].label.c_str());
83 } else { 83 } else {
84 printf("raise Exception(\"Unknown graph type\")\n"); 84 printf("raise Exception(\"Unknown graph type\")\n");
85 } 85 }
86 } 86 }
87 } 87 }
88 88
89 printf("plt.xlim(%f, %f)\n", xaxis_min_, xaxis_max_); 89 printf("plt.xlim(%f, %f)\n", xaxis_min_, xaxis_max_);
90 printf("plt.ylim(%f, %f)\n", yaxis_min_, yaxis_max_); 90 printf("plt.ylim(%f, %f)\n", yaxis_min_, yaxis_max_);
91 printf("plt.xlabel(\'%s\')\n", xaxis_label_.c_str()); 91 printf("plt.xlabel(\'%s\')\n", xaxis_label_.c_str());
(...skipping 19 matching lines...) Expand all
111 } 111 }
112 112
113 Plot* PythonPlotCollection::AppendNewPlot() { 113 Plot* PythonPlotCollection::AppendNewPlot() {
114 Plot* plot = new PythonPlot(); 114 Plot* plot = new PythonPlot();
115 plots_.push_back(std::unique_ptr<Plot>(plot)); 115 plots_.push_back(std::unique_ptr<Plot>(plot));
116 return plot; 116 return plot;
117 } 117 }
118 118
119 } // namespace plotting 119 } // namespace plotting
120 } // namespace webrtc 120 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698