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

Issue 2445363003: Improvements in how WebRTC.Audio.RecordedOnlyZeros is added as histogram (Closed)

Created:
4 years, 1 month ago by henrika_webrtc
Modified:
4 years, 1 month ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Improvements in how WebRTC.Audio.RecordedOnlyZeros is added as histogram. Contains fixes for a non-perfect implementation in https://codereview.webrtc.org/2328433003/ Summary: Adds WebRTC.Audio.RecordedOnlyZeros UMA stat when recording stops if: - All level estimates during the audio session were zero, and - If the audio session was longer than 10 seconds. Adds four simple methods to the AudioDeviceBuffer (ADB) class to allow the ADM to update the ADB about when media starts and stops in both directions. Moves any "critical" parst out frome the timer (based on task queue) and ensures that it only does trivial logging tasks. The task queue is now owned by a unique pointer to improve control of when it starts and stops. Adds time measurements (for logging) of both total time playing out and total recording time. Units are in milliseconds. BUG=webrtc:6592 Committed: https://crrev.com/ba156cfe96d738ff4c04537bd4c23335aaace11f Cr-Commit-Position: refs/heads/master@{#14854}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 42

Patch Set 3 : Feedback from tommi@ #

Patch Set 4 : Fixes failing ADM unittests #

Patch Set 5 : Removes usage of invalid pointer to TaskQueue #

Patch Set 6 : Final cleanup #

Patch Set 7 : nits #

Total comments: 15

Patch Set 8 : Feedback from tommi@ #

Patch Set 9 : More lambdas #

Total comments: 2

Patch Set 10 : Added TODO(henrika) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -112 lines) Patch
M webrtc/modules/audio_device/audio_device_buffer.h View 1 2 3 4 5 6 7 6 chunks +39 lines, -21 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_buffer.cc View 1 2 3 4 5 6 7 8 9 10 chunks +178 lines, -89 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_impl.cc View 1 2 3 6 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
henrika_webrtc
PTAL
4 years, 1 month ago (2016-10-25 11:12:35 UTC) #4
tommi
Here are some thoughts about this cl but I also took a look at a ...
4 years, 1 month ago (2016-10-25 16:43:23 UTC) #7
henrika_webrtc
Great feedback. Covered most of it and added some references to upcoming CLs where I ...
4 years, 1 month ago (2016-10-26 12:42:41 UTC) #8
henrika_webrtc
I had to remove some DCHECKs and use return instead due to how the existing ...
4 years, 1 month ago (2016-10-26 14:14:52 UTC) #9
henrika_webrtc
Now done some final fixes that should remove any race conditions and improve the overall ...
4 years, 1 month ago (2016-10-27 15:03:34 UTC) #10
henrika_webrtc
Hence, please check again Tommi ;-)
4 years, 1 month ago (2016-10-27 15:04:36 UTC) #11
tommi
https://codereview.webrtc.org/2445363003/diff/120001/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2445363003/diff/120001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode94 webrtc/modules/audio_device/audio_device_buffer.cc:94: if (playing_) { I had a comment on RTC_DCHECK(!playing_) ...
4 years, 1 month ago (2016-10-27 17:38:24 UTC) #12
henrika_webrtc
PTAL https://codereview.webrtc.org/2445363003/diff/120001/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2445363003/diff/120001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode94 webrtc/modules/audio_device/audio_device_buffer.cc:94: if (playing_) { I have a TODO to ...
4 years, 1 month ago (2016-10-31 12:23:06 UTC) #13
tommi
lgtm. for those things that I mentioned and you'd like to do later, it would ...
4 years, 1 month ago (2016-10-31 14:18:03 UTC) #14
henrika_webrtc
Thanks for tons of valuable feedback! https://codereview.webrtc.org/2445363003/diff/160001/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2445363003/diff/160001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode481 webrtc/modules/audio_device/audio_device_buffer.cc:481: // set to ...
4 years, 1 month ago (2016-10-31 14:52:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2445363003/180001
4 years, 1 month ago (2016-10-31 14:52:56 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-10-31 15:18:59 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 15:44:26 UTC) #22
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ba156cfe96d738ff4c04537bd4c23335aaace11f
Cr-Commit-Position: refs/heads/master@{#14854}

Powered by Google App Engine
This is Rietveld 408576698