| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log); | 86 webrtc::plotting::EventLogAnalyzer analyzer(parsed_log); |
| 87 std::unique_ptr<webrtc::plotting::PlotCollection> collection( | 87 std::unique_ptr<webrtc::plotting::PlotCollection> collection( |
| 88 new webrtc::plotting::PythonPlotCollection()); | 88 new webrtc::plotting::PythonPlotCollection()); |
| 89 | 89 |
| 90 if (FLAGS_plot_all || FLAGS_plot_packets) { | 90 if (FLAGS_plot_all || FLAGS_plot_packets) { |
| 91 if (FLAGS_incoming) { | 91 if (FLAGS_incoming) { |
| 92 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket, | 92 analyzer.CreatePacketGraph(webrtc::PacketDirection::kIncomingPacket, |
| 93 collection->AppendNewPlot()); | 93 collection->AppendNewPlot()); |
| 94 analyzer.CreateAccumulatedPacketsGraph( |
| 95 webrtc::PacketDirection::kIncomingPacket, |
| 96 collection->AppendNewPlot()); |
| 94 } | 97 } |
| 95 if (FLAGS_outgoing) { | 98 if (FLAGS_outgoing) { |
| 96 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket, | 99 analyzer.CreatePacketGraph(webrtc::PacketDirection::kOutgoingPacket, |
| 97 collection->AppendNewPlot()); | 100 collection->AppendNewPlot()); |
| 101 analyzer.CreateAccumulatedPacketsGraph( |
| 102 webrtc::PacketDirection::kOutgoingPacket, |
| 103 collection->AppendNewPlot()); |
| 98 } | 104 } |
| 99 } | 105 } |
| 100 | 106 |
| 101 if (FLAGS_plot_all || FLAGS_plot_audio_playout) { | 107 if (FLAGS_plot_all || FLAGS_plot_audio_playout) { |
| 102 analyzer.CreatePlayoutGraph(collection->AppendNewPlot()); | 108 analyzer.CreatePlayoutGraph(collection->AppendNewPlot()); |
| 103 } | 109 } |
| 104 | 110 |
| 105 if (FLAGS_plot_all || FLAGS_plot_sequence_number) { | 111 if (FLAGS_plot_all || FLAGS_plot_sequence_number) { |
| 106 if (FLAGS_incoming) { | 112 if (FLAGS_incoming) { |
| 107 analyzer.CreateSequenceNumberGraph(collection->AppendNewPlot()); | 113 analyzer.CreateSequenceNumberGraph(collection->AppendNewPlot()); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 159 } |
| 154 | 160 |
| 155 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { | 161 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { |
| 156 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); | 162 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); |
| 157 } | 163 } |
| 158 | 164 |
| 159 collection->Draw(); | 165 collection->Draw(); |
| 160 | 166 |
| 161 return 0; | 167 return 0; |
| 162 } | 168 } |
| OLD | NEW |