 Chromium Code Reviews
 Chromium Code Reviews Issue 2808833002:
  Delay based logging.  (Closed)
    
  
    Issue 2808833002:
  Delay based logging.  (Closed) 
  | OLD | NEW | 
|---|---|
| 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 Loading... | |
| 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", | 
| 
philipel
2017/04/10 13:20:44
The '.' format is really hard to see, 'o' is much
 
terelius
2017/04/10 13:46:27
Is this also true for graphs in which every point
 
philipel
2017/04/10 13:55:09
So far DOT_GRAPH is only used to visualize probing
 | |
| 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 Loading... | |
| 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 | 
| OLD | NEW |