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

Issue 2328433003: Adds logging of native audio levels and UMA stats to track issues (Closed)

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

Description

Adds logging of native audio levels and UMA stats to track issues. This changes added a simple measurement of levels "close to the audio hardware" both for playout and for recording. These levels are logged once each 10 seconds. It also adds WebRTC.Audio.RecordedOnlyZeros UMA stat and it is updated at destuction. It will report true iff all reported recording leves are zero. BUG=NONE R=peah@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/f06f35a161b753696103615d8a40532c4fb4266a

Patch Set 1 #

Patch Set 2 : Added UMA #

Patch Set 3 : Minor improvements #

Total comments: 8

Patch Set 4 : rebased #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -12 lines) Patch
M webrtc/modules/audio_device/audio_device_buffer.h View 1 2 3 2 chunks +23 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_buffer.cc View 1 2 3 11 chunks +79 lines, -10 lines 11 comments Download

Messages

Total messages: 17 (8 generated)
henrika_webrtc
PTAL
4 years, 3 months ago (2016-09-08 14:21:20 UTC) #3
peah-webrtc
Nice! I have some questions though. One general question is whether this is allready done ...
4 years, 3 months ago (2016-09-09 09:06:27 UTC) #5
peah-webrtc
On 2016/09/09 09:06:27, peah-webrtc wrote: > Nice! I have some questions though. > > One ...
4 years, 3 months ago (2016-09-09 11:53:03 UTC) #6
henrika_webrtc
https://codereview.webrtc.org/2328433003/diff/40001/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2328433003/diff/40001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode354 webrtc/modules/audio_device/audio_device_buffer.cc:354: task_queue_.PostTask(rtc::Bind(&AudioDeviceBuffer::UpdatePlayStats, this, Referring to off-line discussion. https://codereview.webrtc.org/2328433003/diff/40001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode354 webrtc/modules/audio_device/audio_device_buffer.cc:354: task_queue_.PostTask(rtc::Bind(&AudioDeviceBuffer::UpdatePlayStats, ...
4 years, 3 months ago (2016-09-09 11:55:02 UTC) #7
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/2328433003/60001
4 years, 3 months ago (2016-09-09 12:02:59 UTC) #10
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f06f35a161b753696103615d8a40532c4fb4266a Cr-Commit-Position: refs/heads/master@{#14160}
4 years, 3 months ago (2016-09-09 12:23:27 UTC) #12
henrika_webrtc
Committed patchset #4 (id:60001) manually as f06f35a161b753696103615d8a40532c4fb4266a (presubmit successful).
4 years, 3 months ago (2016-09-09 12:23:29 UTC) #14
tommi
https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_device/audio_device_buffer.cc#newcode103 webrtc/modules/audio_device/audio_device_buffer.cc:103: RTC_LOGGED_HISTOGRAM_BOOLEAN("WebRTC.Audio.RecordedOnlyZeros", since this is only logged in certain cases, ...
4 years, 1 month ago (2016-10-24 12:19:15 UTC) #16
henrika_webrtc
4 years, 1 month ago (2016-10-24 13:05:14 UTC) #17
Message was sent while issue was closed.
Thanks Tommi!

Posted some initial comments. Let me upload a new change and take your comments
into account. I have done other changes in this area since the CL landed. Hence,
will start from scratch in separate issue and refer to this one.

Hope that is OK.

https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_de...
File webrtc/modules/audio_device/audio_device_buffer.cc (right):

https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_de...
webrtc/modules/audio_device/audio_device_buffer.cc:286: audio_buffer,
num_samples));
Correct. It has been fixed since this CL landed. I no longer pass the audio
buffer but do the level calculation on the audio thread and post the result.

https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_de...
webrtc/modules/audio_device/audio_device_buffer.cc:356: &play_buffer_[0],
num_samples_out));
Agree. Has been changed since this CL landed.

https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_de...
webrtc/modules/audio_device/audio_device_buffer.cc:466:
RTC_DCHECK(task_queue_.IsCurrent());
On 2016/10/24 12:19:14, tommi (webrtc) wrote:
> see above. if this runs on the task queue, it looks to me like it will contend
> with the audio callback thread(s)

Acknowledged.

https://codereview.chromium.org/2328433003/diff/60001/webrtc/modules/audio_de...
webrtc/modules/audio_device/audio_device_buffer.cc:484:
RTC_DCHECK(task_queue_.IsCurrent());
On 2016/10/24 12:19:14, tommi (webrtc) wrote:
> same here

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698