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

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

Issue 2295063006: Plot accumelated packets over time. (Closed)
Patch Set: data --> packets Created 4 years, 3 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
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698