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

Issue 2103863004: UMA log for audio_device Init and Start(Playout|Recording). Make Init return a more specific error … (Closed)

Created:
4 years, 5 months ago by Max Morin WebRTC
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, audio-team_agora.io, sdk-team_agora.io, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

UMA log for audio_device Init and Start(Playout|Recording). Make Init return a more specific error code, if possible. BUG=webrtc:5761 R=asapersson@webrtc.org, henrika@webrtc.org Committed: https://crrev.com/84cab205f51a42e23ed06a4fa6d8bf933b0f140a Cr-Commit-Position: refs/heads/master@{#13361}

Patch Set 1 #

Patch Set 2 : Fix silly errors #

Patch Set 3 : Fix more silly errors. #

Total comments: 20

Patch Set 4 : Address comments. #

Total comments: 8

Patch Set 5 : Add more statistics. Fix missing headers. Fix missing dependencies in gn file. #

Total comments: 10

Patch Set 6 : Add RTC_HISTOGRAM_BOOLEAN, change NO_ERROR -> OK. #

Total comments: 7

Patch Set 7 : Fix syntax error. #

Patch Set 8 : Rename variable. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -190 lines) Patch
M webrtc/modules/audio_device/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 1 comment Download
M webrtc/modules/audio_device/android/audio_device_template.h View 1 2 3 5 1 chunk +7 lines, -6 lines 0 comments Download
M webrtc/modules/audio_device/audio_device.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_generic.h View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/audio_device_impl.cc View 1 2 3 4 5 6 7 9 chunks +42 lines, -12 lines 0 comments Download
M webrtc/modules/audio_device/dummy/audio_device_dummy.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/dummy/audio_device_dummy.cc View 1 2 3 5 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device.cc View 1 2 3 5 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.mm View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_alsa_linux.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc View 1 2 3 5 3 chunks +16 lines, -22 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_pulse_linux.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_pulse_linux.cc View 1 2 3 5 2 chunks +35 lines, -45 lines 0 comments Download
M webrtc/modules/audio_device/mac/audio_device_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/mac/audio_device_mac.cc View 1 2 3 4 5 8 chunks +15 lines, -9 lines 0 comments Download
M webrtc/modules/audio_device/win/audio_device_core_win.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/win/audio_device_core_win.cc View 1 2 3 5 3 chunks +20 lines, -21 lines 0 comments Download
M webrtc/modules/audio_device/win/audio_device_wave_win.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/win/audio_device_wave_win.cc View 1 2 3 4 5 6 2 chunks +52 lines, -61 lines 0 comments Download
M webrtc/system_wrappers/include/metrics.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
Max Morin WebRTC
Please take a look.
4 years, 5 months ago (2016-06-29 13:08:31 UTC) #4
henrika_webrtc
Looks good. Some initial comments. Let's ensure that we are in phase before you continue. ...
4 years, 5 months ago (2016-06-30 08:44:20 UTC) #5
Max Morin WebRTC
On 2016/06/30 08:44:20, henrika_webrtc wrote: > Looks good. Some initial comments. Let's ensure that we ...
4 years, 5 months ago (2016-06-30 08:49:42 UTC) #6
Max Morin WebRTC
Please take another look. https://codereview.webrtc.org/2103863004/diff/60001/webrtc/modules/audio_device/audio_device.gypi File webrtc/modules/audio_device/audio_device.gypi (right): https://codereview.webrtc.org/2103863004/diff/60001/webrtc/modules/audio_device/audio_device.gypi#newcode19 webrtc/modules/audio_device/audio_device.gypi:19: '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', On 2016/06/30 08:44:20, henrika_webrtc ...
4 years, 5 months ago (2016-06-30 10:56:04 UTC) #7
Max Morin WebRTC
https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/mac/audio_device_mac.cc File webrtc/modules/audio_device/mac/audio_device_mac.cc (right): https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/mac/audio_device_mac.cc#newcode10 webrtc/modules/audio_device/mac/audio_device_mac.cc:10: Added missing logging header https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/win/audio_device_wave_win.cc File webrtc/modules/audio_device/win/audio_device_wave_win.cc (right): https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/win/audio_device_wave_win.cc#newcode10 ...
4 years, 5 months ago (2016-06-30 11:22:58 UTC) #8
henrika_webrtc
Started providing feedback but we discussed offline and came to the conclusion that it might ...
4 years, 5 months ago (2016-06-30 15:19:18 UTC) #9
Max Morin WebRTC
Please take another look. https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/android/audio_device_template.h File webrtc/modules/audio_device/android/audio_device_template.h (right): https://codereview.webrtc.org/2103863004/diff/80001/webrtc/modules/audio_device/android/audio_device_template.h#newcode73 webrtc/modules/audio_device/android/audio_device_template.h:73: return InitStatus::OK; On 2016/06/30 15:19:18, ...
4 years, 5 months ago (2016-06-30 16:00:23 UTC) #10
henrika_webrtc
Looks much better now. Please double check the dependencies and ensure that there is no ...
4 years, 5 months ago (2016-07-01 07:56:29 UTC) #11
Max Morin WebRTC
ptal https://codereview.webrtc.org/2103863004/diff/100001/webrtc/modules/audio_device/audio_device.gypi File webrtc/modules/audio_device/audio_device.gypi (right): https://codereview.webrtc.org/2103863004/diff/100001/webrtc/modules/audio_device/audio_device.gypi#newcode92 webrtc/modules/audio_device/audio_device.gypi:92: 'dependencies': [ On 2016/07/01 07:56:29, henrika_webrtc wrote: > ...
4 years, 5 months ago (2016-07-01 08:26:46 UTC) #12
Max Morin WebRTC
https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/win/audio_device_wave_win.cc File webrtc/modules/audio_device/win/audio_device_wave_win.cc (right): https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/win/audio_device_wave_win.cc#newcode234 webrtc/modules/audio_device/win/audio_device_wave_win.cc:234: LOG(LS_ERROR) << "failed to start the timer event"); Fixed.
4 years, 5 months ago (2016-07-01 08:32:49 UTC) #13
henrika_webrtc
LGTM from my side. Please check with Åsa as well.
4 years, 5 months ago (2016-07-01 08:52:39 UTC) #14
åsapersson
https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/audio_device_impl.cc File webrtc/modules/audio_device/audio_device_impl.cc (right): https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/audio_device_impl.cc#newcode489 webrtc/modules/audio_device/audio_device_impl.cc:489: AudioDeviceGeneric::InitStatus err = _ptrAudioDevice->Init(); maybe rename to status or ...
4 years, 5 months ago (2016-07-01 09:47:08 UTC) #15
Max Morin WebRTC
Åsa: Please take a final look before upload. Notice the modified metrics.h.
4 years, 5 months ago (2016-07-01 09:49:43 UTC) #16
Max Morin WebRTC
ptal https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/audio_device_impl.cc File webrtc/modules/audio_device/audio_device_impl.cc (right): https://codereview.webrtc.org/2103863004/diff/120001/webrtc/modules/audio_device/audio_device_impl.cc#newcode489 webrtc/modules/audio_device/audio_device_impl.cc:489: AudioDeviceGeneric::InitStatus err = _ptrAudioDevice->Init(); On 2016/07/01 09:47:08, åsapersson ...
4 years, 5 months ago (2016-07-01 10:23:21 UTC) #17
åsapersson
lgtm
4 years, 5 months ago (2016-07-01 10:44:33 UTC) #18
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/2103863004/160001
4 years, 5 months ago (2016-07-01 11:24:14 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14743)
4 years, 5 months ago (2016-07-01 11:31:07 UTC) #24
Max Morin WebRTC
Committed patchset #8 (id:160001) manually as 84cab205f51a42e23ed06a4fa6d8bf933b0f140a (presubmit successful).
4 years, 5 months ago (2016-07-01 11:35:38 UTC) #26
kjellander_webrtc
I found a dependency here which I hope can be removed... https://codereview.webrtc.org/2103863004/diff/160001/webrtc/modules/audio_device/BUILD.gn File webrtc/modules/audio_device/BUILD.gn (right): ...
4 years, 3 months ago (2016-09-14 19:47:15 UTC) #29
Max Morin WebRTC
On 2016/09/14 19:47:15, kjellander_webrtc wrote: > I found a dependency here which I hope can ...
4 years, 3 months ago (2016-09-15 07:09:41 UTC) #30
kjellander_webrtc
4 years, 3 months ago (2016-09-15 07:55:54 UTC) #31
Message was sent while issue was closed.
On 2016/09/15 07:09:41, Max Morin wrote:
> On 2016/09/14 19:47:15, kjellander_webrtc wrote:
> > I found a dependency here which I hope can be removed...
> > 
> >
>
https://codereview.webrtc.org/2103863004/diff/160001/webrtc/modules/audio_dev...
> > File webrtc/modules/audio_device/BUILD.gn (right):
> > 
> >
>
https://codereview.webrtc.org/2103863004/diff/160001/webrtc/modules/audio_dev...
> > webrtc/modules/audio_device/BUILD.gn:30: "../../base:rtc_base",
> > We try to avoid this dependency (but we haven't updated the PRESUBMIT check
> for
> > GN, it only exists for GYP). Is this dependency really needed here?
> > 
> > If so, it should be added to GYP too, but ideally it wouldn't be needed.
> 
> This is needed to pass gn check:
> 
> ERROR at //webrtc/modules/audio_device/audio_device_buffer.cc:15:11: Include
not
> allowed.
> #include "webrtc/base/arraysize.h"
>           ^----------------------
> It is not in any dependency of
>   //webrtc/modules/audio_device:audio_device
> The include file is in the target(s):
>   //webrtc/base:rtc_base
> which should somehow be reachable.
> 
> I'm not sure what the preferred solution is. Could this be added to
> rtc_base_approved?

Yeah, it would be great if you can move webrtc/base/arraysize.h into
rtc_base_approved and remove the dependency from audio_device (in the same CL).
Since webrtc/base/arraysize.h doesn't depend on anything else, that should be
simple (the idea with rtc_base_approved was to move out everything from rtc_base
that depended on things like jsoncpp and expat into another target, then
eventually remove rtc_base entirely at some point).

Powered by Google App Engine
This is Rietveld 408576698