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

Side by Side Diff: webrtc/tools/event_log_visualizer/analyzer.h

Issue 2234883002: Adds function for computing moving average to visualization tool. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments from Stefan 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
« no previous file with comments | « no previous file | webrtc/tools/event_log_visualizer/analyzer.cc » ('j') | 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 11 matching lines...) Expand all
22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
23 #include "webrtc/tools/event_log_visualizer/plot_base.h" 23 #include "webrtc/tools/event_log_visualizer/plot_base.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 namespace plotting { 26 namespace plotting {
27 27
28 struct LoggedRtpPacket { 28 struct LoggedRtpPacket {
29 LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length) 29 LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length)
30 : timestamp(timestamp), header(header), total_length(total_length) {} 30 : timestamp(timestamp), header(header), total_length(total_length) {}
31 uint64_t timestamp; 31 uint64_t timestamp;
32 // TODO(terelius): This allocates space for 15 CSRCs even if none are used.
32 RTPHeader header; 33 RTPHeader header;
33 size_t total_length; 34 size_t total_length;
34 }; 35 };
35 36
36 struct LoggedRtcpPacket { 37 struct LoggedRtcpPacket {
37 LoggedRtcpPacket(uint64_t timestamp, 38 LoggedRtcpPacket(uint64_t timestamp,
38 RTCPPacketType rtcp_type, 39 RTCPPacketType rtcp_type,
39 std::unique_ptr<rtcp::RtcpPacket> rtcp_packet) 40 std::unique_ptr<rtcp::RtcpPacket> rtcp_packet)
40 : timestamp(timestamp), type(rtcp_type), packet(std::move(rtcp_packet)) {} 41 : timestamp(timestamp), type(rtcp_type), packet(std::move(rtcp_packet)) {}
41 uint64_t timestamp; 42 uint64_t timestamp;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 uint64_t end_time_; 142 uint64_t end_time_;
142 143
143 // Duration (in seconds) of log file. 144 // Duration (in seconds) of log file.
144 float call_duration_s_; 145 float call_duration_s_;
145 }; 146 };
146 147
147 } // namespace plotting 148 } // namespace plotting
148 } // namespace webrtc 149 } // namespace webrtc
149 150
150 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ 151 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/event_log_visualizer/analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698