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

Issue 1303713002: Keep config events in RtcEventLog even if they are old. (Closed)

Created:
5 years, 4 months ago by terelius
Modified:
5 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), stefan-webrtc, tterriberry_mozilla.com, andresp, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Old config events are no longer removed from RtcEventLog. Time to keep old events in buffer is now changeable at runtime. Added unit test for removing old events from buffer. Committed: https://crrev.com/1adce14c87f8316b5c3f4ee16b8f573c8bf14761 Cr-Commit-Position: refs/heads/master@{#10302}

Patch Set 1 #

Patch Set 2 : Lock before changing buffer duration #

Total comments: 22

Patch Set 3 : Reviewer comments from ivoc@ #

Total comments: 16

Patch Set 4 : Reviewer comments #

Patch Set 5 : Rebase and resolve merge conflicts #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase again #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -24 lines) Patch
M webrtc/call/rtc_event_log.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/call/rtc_event_log.cc View 1 2 3 4 5 6 11 chunks +53 lines, -20 lines 0 comments Download
M webrtc/call/rtc_event_log_unittest.cc View 1 2 3 4 5 4 chunks +100 lines, -4 lines 1 comment Download

Messages

Total messages: 30 (9 generated)
terelius
Please have a look at this CL which fixes a problem where we lose configuration ...
5 years, 4 months ago (2015-08-19 15:15:26 UTC) #2
ivoc
Looks good! I have a few comments below. https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc#newcode173 webrtc/video/rtc_event_log.cc:173: recent_log_duration_us_ ...
5 years, 4 months ago (2015-08-25 08:03:21 UTC) #3
terelius
https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc#newcode173 webrtc/video/rtc_event_log.cc:173: recent_log_duration_us_ = recent_log_duration_us; On 2015/08/25 08:03:21, ivoc wrote: > ...
5 years, 3 months ago (2015-08-25 16:41:44 UTC) #4
ivoc
https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc#newcode173 webrtc/video/rtc_event_log.cc:173: recent_log_duration_us_ = recent_log_duration_us; On 2015/08/25 16:41:44, terelius wrote: > ...
5 years, 3 months ago (2015-08-26 08:15:28 UTC) #5
terelius
https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.h File webrtc/video/rtc_event_log.h (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.h#newcode43 webrtc/video/rtc_event_log.h:43: virtual void SetBufferDuration(int64_t recent_log_duration_us) = 0; On 2015/08/26 08:15:28, ...
5 years, 3 months ago (2015-08-26 08:43:37 UTC) #6
hlundin-webrtc
LG. Some smaller comments. https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc#newcode171 webrtc/video/rtc_event_log.cc:171: void RtcEventLogImpl::SetBufferDuration(int64_t recent_log_duration_us) { I ...
5 years, 3 months ago (2015-08-28 11:16:29 UTC) #7
stefan-webrtc
https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc#newcode195 webrtc/video/rtc_event_log.cc:195: if (event.type() == rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT || On 2015/08/28 11:16:29, hlundin-webrtc ...
5 years, 3 months ago (2015-09-03 11:13:21 UTC) #8
terelius
https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.cc#newcode171 webrtc/video/rtc_event_log.cc:171: void RtcEventLogImpl::SetBufferDuration(int64_t recent_log_duration_us) { On 2015/08/28 11:16:29, hlundin-webrtc wrote: ...
5 years, 3 months ago (2015-09-17 12:44:08 UTC) #9
hlundin-webrtc
lgtm https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.h File webrtc/video/rtc_event_log.h (right): https://codereview.webrtc.org/1303713002/diff/40001/webrtc/video/rtc_event_log.h#newcode42 webrtc/video/rtc_event_log.h:42: // before the user calls StartLogging. The default ...
5 years, 3 months ago (2015-09-22 09:35:15 UTC) #10
ivoc
Sorry for the late reply, I kind of forgot about this one. https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc ...
5 years, 2 months ago (2015-09-25 15:30:23 UTC) #11
terelius
https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc#newcode405 webrtc/video/rtc_event_log.cc:405: config_events_.push_back(recent_log_events_.front()); On 2015/09/25 15:30:23, ivoc wrote: > On 2015/08/26 ...
5 years, 2 months ago (2015-10-15 13:28:21 UTC) #12
ivoc
lgtm https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc File webrtc/video/rtc_event_log.cc (right): https://codereview.webrtc.org/1303713002/diff/20001/webrtc/video/rtc_event_log.cc#newcode405 webrtc/video/rtc_event_log.cc:405: config_events_.push_back(recent_log_events_.front()); On 2015/10/15 13:28:21, terelius wrote: > On ...
5 years, 2 months ago (2015-10-15 15:52:06 UTC) #13
stefan-webrtc
lgtm
5 years, 2 months ago (2015-10-16 06:55:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303713002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303713002/100001
5 years, 2 months ago (2015-10-16 09:24:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1253)
5 years, 2 months ago (2015-10-16 09:26:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303713002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303713002/120001
5 years, 2 months ago (2015-10-16 14:11:27 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 2 months ago (2015-10-16 14:58:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303713002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303713002/120001
5 years, 2 months ago (2015-10-16 15:50:13 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-16 15:51:12 UTC) #27
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1adce14c87f8316b5c3f4ee16b8f573c8bf14761 Cr-Commit-Position: refs/heads/master@{#10302}
5 years, 2 months ago (2015-10-16 15:51:26 UTC) #28
the sun
5 years, 2 months ago (2015-10-16 21:47:02 UTC) #30
Message was sent while issue was closed.
https://codereview.webrtc.org/1303713002/diff/120001/webrtc/call/rtc_event_lo...
File webrtc/call/rtc_event_log_unittest.cc (right):

https://codereview.webrtc.org/1303713002/diff/120001/webrtc/call/rtc_event_lo...
webrtc/call/rtc_event_log_unittest.cc:568: size_t packet_size = 1000 + rand() %
64;
Avoid rand() in unit tests; it accesses global state, so if used from multiple
threads, your random sequence may differ between test runs.

Here's a simple PRNG you can use instead: 
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/webrtc...

Powered by Google App Engine
This is Rietveld 408576698