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

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

Issue 2179223003: Convenience functions to set axis properties in visualization tool. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 << std::endl; 71 << std::endl;
72 } 72 }
73 73
74 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log); 74 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log);
75 std::unique_ptr<webrtc::plotting::PlotCollection> collection( 75 std::unique_ptr<webrtc::plotting::PlotCollection> collection(
76 new webrtc::plotting::PythonPlotCollection()); 76 new webrtc::plotting::PythonPlotCollection());
77 77
78 if (FLAGS_plot_all || FLAGS_plot_packets) { 78 if (FLAGS_plot_all || FLAGS_plot_packets) {
79 if (FLAGS_incoming) { 79 if (FLAGS_incoming) {
80 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket, 80 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket,
81 collection->append_new_plot()); 81 collection->AppendNewPlot());
82 } 82 }
83 if (FLAGS_outgoing) { 83 if (FLAGS_outgoing) {
84 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket, 84 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket,
85 collection->append_new_plot()); 85 collection->AppendNewPlot());
86 } 86 }
87 } 87 }
88 88
89 if (FLAGS_plot_all || FLAGS_plot_audio_playout) { 89 if (FLAGS_plot_all || FLAGS_plot_audio_playout) {
90 analyzer.CreatePlayoutGraph(collection->append_new_plot()); 90 analyzer.CreatePlayoutGraph(collection->AppendNewPlot());
91 } 91 }
92 92
93 if (FLAGS_plot_all || FLAGS_plot_sequence_number) { 93 if (FLAGS_plot_all || FLAGS_plot_sequence_number) {
94 if (FLAGS_incoming) { 94 if (FLAGS_incoming) {
95 analyzer.CreateSequenceNumberGraph(collection->append_new_plot()); 95 analyzer.CreateSequenceNumberGraph(collection->AppendNewPlot());
96 } 96 }
97 } 97 }
98 98
99 if (FLAGS_plot_all || FLAGS_plot_delay_change) { 99 if (FLAGS_plot_all || FLAGS_plot_delay_change) {
100 if (FLAGS_incoming) { 100 if (FLAGS_incoming) {
101 analyzer.CreateDelayChangeGraph(collection->append_new_plot()); 101 analyzer.CreateDelayChangeGraph(collection->AppendNewPlot());
102 } 102 }
103 } 103 }
104 104
105 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) { 105 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) {
106 if (FLAGS_incoming) { 106 if (FLAGS_incoming) {
107 analyzer.CreateAccumulatedDelayChangeGraph(collection->append_new_plot()); 107 analyzer.CreateAccumulatedDelayChangeGraph(collection->AppendNewPlot());
108 } 108 }
109 } 109 }
110 110
111 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) { 111 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) {
112 if (FLAGS_incoming) { 112 if (FLAGS_incoming) {
113 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, 113 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket,
114 collection->append_new_plot()); 114 collection->AppendNewPlot());
115 } 115 }
116 if (FLAGS_outgoing) { 116 if (FLAGS_outgoing) {
117 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, 117 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket,
118 collection->append_new_plot()); 118 collection->AppendNewPlot());
119 } 119 }
120 } 120 }
121 121
122 if (FLAGS_plot_all || FLAGS_plot_stream_bitrate) { 122 if (FLAGS_plot_all || FLAGS_plot_stream_bitrate) {
123 if (FLAGS_incoming) { 123 if (FLAGS_incoming) {
124 analyzer.CreateStreamBitrateGraph( 124 analyzer.CreateStreamBitrateGraph(
125 webrtc::PacketDirection::kIncomingPacket, 125 webrtc::PacketDirection::kIncomingPacket,
126 collection->append_new_plot()); 126 collection->AppendNewPlot());
127 } 127 }
128 if (FLAGS_outgoing) { 128 if (FLAGS_outgoing) {
129 analyzer.CreateStreamBitrateGraph( 129 analyzer.CreateStreamBitrateGraph(
130 webrtc::PacketDirection::kOutgoingPacket, 130 webrtc::PacketDirection::kOutgoingPacket,
131 collection->append_new_plot()); 131 collection->AppendNewPlot());
132 } 132 }
133 } 133 }
134 134
135 collection->draw(); 135 collection->Draw();
136 136
137 return 0; 137 return 0;
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698