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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 "Run the bandwidth estimator with the logged rtp and rtcp and plot " | 52 "Run the bandwidth estimator with the logged rtp and rtcp and plot " |
53 "the output."); | 53 "the output."); |
54 DEFINE_bool(plot_network_delay_feedback, | 54 DEFINE_bool(plot_network_delay_feedback, |
55 false, | 55 false, |
56 "Compute network delay based on sent packets and the received " | 56 "Compute network delay based on sent packets and the received " |
57 "transport feedback."); | 57 "transport feedback."); |
58 DEFINE_bool(plot_fraction_loss, | 58 DEFINE_bool(plot_fraction_loss, |
59 false, | 59 false, |
60 "Plot packet loss in percent for outgoing packets (as perceived by " | 60 "Plot packet loss in percent for outgoing packets (as perceived by " |
61 "the send-side bandwidth estimator)."); | 61 "the send-side bandwidth estimator)."); |
| 62 DEFINE_bool(plot_timestamps, |
| 63 false, |
| 64 "Plot the rtp timestamps of all rtp and rtcp packets over time."); |
62 DEFINE_string( | 65 DEFINE_string( |
63 force_fieldtrials, | 66 force_fieldtrials, |
64 "", | 67 "", |
65 "Field trials control experimental feature code which can be forced. " | 68 "Field trials control experimental feature code which can be forced. " |
66 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" | 69 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" |
67 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " | 70 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " |
68 "trials are separated by \"/\""); | 71 "trials are separated by \"/\""); |
69 | 72 |
70 int main(int argc, char* argv[]) { | 73 int main(int argc, char* argv[]) { |
71 std::string program_name = argv[0]; | 74 std::string program_name = argv[0]; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 176 } |
174 | 177 |
175 if (FLAGS_plot_all || FLAGS_plot_bwe) { | 178 if (FLAGS_plot_all || FLAGS_plot_bwe) { |
176 analyzer.CreateBweSimulationGraph(collection->AppendNewPlot()); | 179 analyzer.CreateBweSimulationGraph(collection->AppendNewPlot()); |
177 } | 180 } |
178 | 181 |
179 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { | 182 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { |
180 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); | 183 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); |
181 } | 184 } |
182 | 185 |
| 186 if (FLAGS_plot_all || FLAGS_plot_timestamps) { |
| 187 analyzer.CreateTimestampGraph(collection->AppendNewPlot()); |
| 188 } |
| 189 |
183 collection->Draw(); | 190 collection->Draw(); |
184 | 191 |
185 return 0; | 192 return 0; |
186 } | 193 } |
OLD | NEW |