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

Issue 1230973005: Adds logging of configuration information for VideoReceiveStream (Closed)

Created:
5 years, 5 months ago by terelius
Modified:
5 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc, kwiberg-webrtc, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Renamed the ACMDump to RtcEventLog and moved it to webrtc/video, since it is not specific to the audio coding module. Updated .gyp and .gn files accordingly. Placed the protobuf structures in the namespace webrtc::rtclog. Removed the message field from the DebugEvent structure, since it was not used. Added an interface to set config information for VideoReceiveStream and VideoSendStream in the event log. Added function to log full RTCP packets and changed RTP-logging to only log headers. Significantly extended the unit tests for RtcEventLog. R=ivoc@webrtc.org, minyue@webrtc.org, pbos@webrtc.org, stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/c159b046d7a0086e45ae0f79c00a462f3fafd207

Patch Set 1 #

Total comments: 74

Patch Set 2 : Renamed AcmDump to RtcEventLog and moved it to webrtc/video #

Patch Set 3 : Fixed gn build files (I hope) #

Patch Set 4 : Refactored and changed some types in accordance with reviewers' comments #

Patch Set 5 : Added RTC_NOTREACHED assertions to stop certain compilers from complaining about reaching end of non-void function #

Patch Set 6 : Added silly return values in unreachable path. #

Total comments: 18

Patch Set 7 : Addressed Ivo's latest comments #

Total comments: 67

Patch Set 8 : Addressed comments from pbos #

Total comments: 8

Patch Set 9 : Rewrote code to start and stop logging. Fixed some minor reviewer comments. #

Patch Set 10 : Removed some commented code #

Total comments: 12

Patch Set 11 : Addressed comments from stefan. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1235 lines, -657 lines) Patch
M webrtc/BUILD.gn View 1 2 3 4 chunks +41 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 chunks +0 lines, -30 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_dump.h View 1 1 chunk +0 lines, -59 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_dump.cc View 1 1 chunk +0 lines, -240 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_dump_unittest.cc View 1 1 chunk +0 lines, -124 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module.gypi View 1 1 chunk +0 lines, -32 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/dump.proto View 1 1 chunk +0 lines, -169 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/video/rtc_event_log.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +81 lines, -0 lines 0 comments Download
A webrtc/video/rtc_event_log.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +406 lines, -0 lines 0 comments Download
A webrtc/video/rtc_event_log.proto View 1 2 3 4 5 6 7 1 chunk +228 lines, -0 lines 0 comments Download
A webrtc/video/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +429 lines, -0 lines 0 comments Download
M webrtc/webrtc.gyp View 1 2 3 4 5 6 7 3 chunks +37 lines, -0 lines 0 comments Download
M webrtc/webrtc_tests.gypi View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (4 generated)
terelius
5 years, 5 months ago (2015-07-10 13:21:42 UTC) #2
ivoc
Looks pretty good! See my comments, most are pretty minor. https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc File webrtc/modules/audio_coding/main/acm2/acm_dump.cc (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc#newcode144 ...
5 years, 5 months ago (2015-07-14 12:13:14 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc File webrtc/modules/audio_coding/main/acm2/acm_dump.cc (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc#newcode183 webrtc/modules/audio_coding/main/acm2/acm_dump.cc:183: // Compiler should warn if anyone adds unhandled new ...
5 years, 5 months ago (2015-07-14 13:28:56 UTC) #4
ivoc
https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.h File webrtc/modules/audio_coding/main/acm2/acm_dump.h (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.h#newcode56 webrtc/modules/audio_coding/main/acm2/acm_dump.h:56: MediaType media_type, On 2015/07/14 13:28:56, stefan-webrtc (holmer) wrote: > ...
5 years, 5 months ago (2015-07-14 13:58:03 UTC) #5
terelius
https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc File webrtc/modules/audio_coding/main/acm2/acm_dump.cc (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc#newcode144 webrtc/modules/audio_coding/main/acm2/acm_dump.cc:144: // printf("Cannot open file %s\n", file_name.c_str()); On 2015/07/14 12:13:13, ...
5 years, 5 months ago (2015-07-16 12:47:03 UTC) #6
terelius
Adding minyue as a reviewer (owner in modules/audio_coding). Adding pbos (primarily for reviewing .gyp and ...
5 years, 5 months ago (2015-07-16 15:02:13 UTC) #8
minyue-webrtc
On 2015/07/16 15:02:13, terelius wrote: > Adding minyue as a reviewer (owner in modules/audio_coding). > ...
5 years, 5 months ago (2015-07-16 15:19:54 UTC) #9
terelius
On 2015/07/16 15:19:54, minyuel wrote: > On 2015/07/16 15:02:13, terelius wrote: > > Adding minyue ...
5 years, 5 months ago (2015-07-17 07:46:43 UTC) #10
ivoc
Some more comments. https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc File webrtc/modules/audio_coding/main/acm2/acm_dump.cc (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/acm_dump.cc#newcode285 webrtc/modules/audio_coding/main/acm2/acm_dump.cc:285: rtcp_event.mutable_rtcp_packet()->set_direction( On 2015/07/16 12:47:02, terelius wrote: ...
5 years, 5 months ago (2015-07-17 12:14:29 UTC) #11
minyue-webrtc
On 2015/07/17 07:46:43, terelius wrote: > On 2015/07/16 15:19:54, minyuel wrote: > > On 2015/07/16 ...
5 years, 5 months ago (2015-07-17 14:38:48 UTC) #12
terelius
https://codereview.webrtc.org/1230973005/diff/100001/webrtc/video/BUILD.gn File webrtc/video/BUILD.gn (right): https://codereview.webrtc.org/1230973005/diff/100001/webrtc/video/BUILD.gn#newcode80 webrtc/video/BUILD.gn:80: "..:rtc_event_log", On 2015/07/17 12:14:28, ivoc wrote: > I think ...
5 years, 5 months ago (2015-07-17 15:17:40 UTC) #13
ivoc
lgtm
5 years, 5 months ago (2015-07-17 15:23:40 UTC) #14
terelius
https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto File webrtc/modules/audio_coding/main/acm2/dump.proto (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto#newcode86 webrtc/modules/audio_coding/main/acm2/dump.proto:86: // optional bytes payload = 5; On 2015/07/17 12:14:28, ...
5 years, 5 months ago (2015-07-17 17:48:33 UTC) #15
minyue-webrtc
On 2015/07/17 17:48:33, terelius wrote: > https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto > File webrtc/modules/audio_coding/main/acm2/dump.proto (right): > > https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto#newcode86 > ...
5 years, 5 months ago (2015-07-21 12:16:57 UTC) #16
minyue-webrtc
here is my comment https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto File webrtc/modules/audio_coding/main/acm2/dump.proto (right): https://codereview.webrtc.org/1230973005/diff/1/webrtc/modules/audio_coding/main/acm2/dump.proto#newcode86 webrtc/modules/audio_coding/main/acm2/dump.proto:86: // optional bytes payload = ...
5 years, 5 months ago (2015-07-21 12:22:47 UTC) #17
stefan-webrtc
https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.proto File webrtc/video/rtc_event_log.proto (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.proto#newcode9 webrtc/video/rtc_event_log.proto:9: message RelEventStream { Is there a need to have ...
5 years, 5 months ago (2015-07-21 12:41:13 UTC) #18
pbos-webrtc
On 2015/07/21 12:41:13, stefan-webrtc (holmer) wrote: > https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.proto > File webrtc/video/rtc_event_log.proto (right): > > https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.proto#newcode9 ...
5 years, 5 months ago (2015-07-21 21:45:38 UTC) #19
pbos-webrtc
https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode17 webrtc/video/rtc_event_log.cc:17: #include "webrtc/call.h" // For MediaType definition Remove comment https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode33 ...
5 years, 5 months ago (2015-07-22 11:05:28 UTC) #20
terelius
Placed the structures generated from the protobuf in it's own namespace. Renamed several classes and ...
5 years, 5 months ago (2015-07-23 15:54:01 UTC) #21
ivoc
https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode152 webrtc/video/rtc_event_log.cc:152: return RelRtpPacket::UNKNOWN_TYPE; On 2015/07/23 15:54:00, terelius wrote: > On ...
5 years, 5 months ago (2015-07-24 08:06:04 UTC) #22
pbos-webrtc
lgtm https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode152 webrtc/video/rtc_event_log.cc:152: return RelRtpPacket::UNKNOWN_TYPE; On 2015/07/24 08:06:04, ivoc wrote: > ...
5 years, 5 months ago (2015-07-24 11:43:40 UTC) #23
terelius
https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode152 webrtc/video/rtc_event_log.cc:152: return RelRtpPacket::UNKNOWN_TYPE; On 2015/07/24 08:06:04, ivoc wrote: > On ...
5 years, 5 months ago (2015-07-24 11:58:42 UTC) #24
ivoc
https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/120001/webrtc/video/rtc_event_log.cc#newcode152 webrtc/video/rtc_event_log.cc:152: return RelRtpPacket::UNKNOWN_TYPE; On 2015/07/24 11:43:40, pbos-webrtc wrote: > On ...
5 years, 5 months ago (2015-07-24 12:07:27 UTC) #25
terelius
https://codereview.webrtc.org/1230973005/diff/140001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/140001/webrtc/video/rtc_event_log.cc#newcode76 webrtc/video/rtc_event_log.cc:76: void LogDebugEventLocked(DebugEvent event_type) On 2015/07/24 11:43:40, pbos-webrtc wrote: > ...
5 years, 4 months ago (2015-07-27 08:27:34 UTC) #26
stefan-webrtc
LG... https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc#newcode37 webrtc/video/rtc_event_log.cc:37: void StartLogging(const std::string& file_name, int duration_ms) override{}; Space ...
5 years, 4 months ago (2015-07-28 08:15:35 UTC) #27
terelius
https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc#newcode37 webrtc/video/rtc_event_log.cc:37: void StartLogging(const std::string& file_name, int duration_ms) override{}; On 2015/07/28 ...
5 years, 4 months ago (2015-07-28 11:52:09 UTC) #28
minyue-webrtc
On 2015/07/28 11:52:09, terelius wrote: > https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc > File webrtc/video/rtc_event_log.cc (right): > > https://codereview.webrtc.org/1230973005/diff/180001/webrtc/video/rtc_event_log.cc#newcode37 > ...
5 years, 4 months ago (2015-07-29 08:54:02 UTC) #29
stefan-webrtc
lgtm
5 years, 4 months ago (2015-07-29 11:49:08 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230973005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1230973005/200001
5 years, 4 months ago (2015-07-29 11:56:43 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/271)
5 years, 4 months ago (2015-07-29 11:58:02 UTC) #34
terelius
5 years, 4 months ago (2015-07-30 09:06:16 UTC) #35
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as
c159b046d7a0086e45ae0f79c00a462f3fafd207.

Powered by Google App Engine
This is Rietveld 408576698