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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 << std::endl; | 75 << std::endl; |
76 } | 76 } |
77 | 77 |
78 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log); | 78 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log); |
79 std::unique_ptr<webrtc::plotting::PlotCollection> collection( | 79 std::unique_ptr<webrtc::plotting::PlotCollection> collection( |
80 new webrtc::plotting::PythonPlotCollection()); | 80 new webrtc::plotting::PythonPlotCollection()); |
81 | 81 |
82 if (FLAGS_plot_all || FLAGS_plot_packets) { | 82 if (FLAGS_plot_all || FLAGS_plot_packets) { |
83 if (FLAGS_incoming) { | 83 if (FLAGS_incoming) { |
84 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket, | 84 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket, |
85 collection->append_new_plot()); | 85 collection->AppendNewPlot()); |
86 } | 86 } |
87 if (FLAGS_outgoing) { | 87 if (FLAGS_outgoing) { |
88 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket, | 88 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket, |
89 collection->append_new_plot()); | 89 collection->AppendNewPlot()); |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 if (FLAGS_plot_all || FLAGS_plot_audio_playout) { | 93 if (FLAGS_plot_all || FLAGS_plot_audio_playout) { |
94 analyzer.CreatePlayoutGraph(collection->append_new_plot()); | 94 analyzer.CreatePlayoutGraph(collection->AppendNewPlot()); |
95 } | 95 } |
96 | 96 |
97 if (FLAGS_plot_all || FLAGS_plot_sequence_number) { | 97 if (FLAGS_plot_all || FLAGS_plot_sequence_number) { |
98 if (FLAGS_incoming) { | 98 if (FLAGS_incoming) { |
99 analyzer.CreateSequenceNumberGraph(collection->append_new_plot()); | 99 analyzer.CreateSequenceNumberGraph(collection->AppendNewPlot()); |
100 } | 100 } |
101 } | 101 } |
102 | 102 |
103 if (FLAGS_plot_all || FLAGS_plot_delay_change) { | 103 if (FLAGS_plot_all || FLAGS_plot_delay_change) { |
104 if (FLAGS_incoming) { | 104 if (FLAGS_incoming) { |
105 analyzer.CreateDelayChangeGraph(collection->append_new_plot()); | 105 analyzer.CreateDelayChangeGraph(collection->AppendNewPlot()); |
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) { | 109 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) { |
110 if (FLAGS_incoming) { | 110 if (FLAGS_incoming) { |
111 analyzer.CreateAccumulatedDelayChangeGraph(collection->append_new_plot()); | 111 analyzer.CreateAccumulatedDelayChangeGraph(collection->AppendNewPlot()); |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) { | 115 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) { |
116 if (FLAGS_incoming) { | 116 if (FLAGS_incoming) { |
117 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, | 117 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, |
118 collection->append_new_plot()); | 118 collection->AppendNewPlot()); |
119 } | 119 } |
120 if (FLAGS_outgoing) { | 120 if (FLAGS_outgoing) { |
121 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, | 121 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, |
122 collection->append_new_plot()); | 122 collection->AppendNewPlot()); |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 if (FLAGS_plot_all || FLAGS_plot_stream_bitrate) { | 126 if (FLAGS_plot_all || FLAGS_plot_stream_bitrate) { |
127 if (FLAGS_incoming) { | 127 if (FLAGS_incoming) { |
128 analyzer.CreateStreamBitrateGraph( | 128 analyzer.CreateStreamBitrateGraph( |
129 webrtc::PacketDirection::kIncomingPacket, | 129 webrtc::PacketDirection::kIncomingPacket, |
130 collection->append_new_plot()); | 130 collection->AppendNewPlot()); |
131 } | 131 } |
132 if (FLAGS_outgoing) { | 132 if (FLAGS_outgoing) { |
133 analyzer.CreateStreamBitrateGraph( | 133 analyzer.CreateStreamBitrateGraph( |
134 webrtc::PacketDirection::kOutgoingPacket, | 134 webrtc::PacketDirection::kOutgoingPacket, |
135 collection->append_new_plot()); | 135 collection->AppendNewPlot()); |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 if (FLAGS_plot_all || FLAGS_plot_bwe) { | 139 if (FLAGS_plot_all || FLAGS_plot_bwe) { |
140 analyzer.CreateBweGraph(collection->append_new_plot()); | 140 analyzer.CreateBweGraph(collection->AppendNewPlot()); |
141 } | 141 } |
142 | 142 |
143 collection->draw(); | 143 collection->Draw(); |
144 | 144 |
145 return 0; | 145 return 0; |
146 } | 146 } |
OLD | NEW |