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

Issue 1695303002: Adds Media.Audio.InputDevicePropertyChangedMac UMA stat on Mac (Closed)

Created:
4 years, 10 months ago by henrika (OOO until Aug 14)
Modified:
4 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds Media.Audio.InputDevicePropertyChangedMac UMA stat on Mac BUG=549021 Committed: https://crrev.com/da354f2d1eccb591387b9e13622fb89581b5f0c7 Cr-Commit-Position: refs/heads/master@{#377264}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Now uses device notifier until first callback or for max 5 seconds #

Patch Set 3 : Modified when device notification is started and stopped #

Total comments: 16

Patch Set 4 : Feedback from olka@ #

Patch Set 5 : nit #

Patch Set 6 : nit #

Patch Set 7 : Device notifier now alive for complete session #

Total comments: 15

Patch Set 8 : Feedback from Tommi #

Patch Set 9 : My own XML parts #

Total comments: 2

Patch Set 10 : Removed lock #

Total comments: 12

Patch Set 11 : isherman@ #

Patch Set 12 : nit #

Total comments: 8

Patch Set 13 : Final round #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -71 lines) Patch
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +39 lines, -3 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +244 lines, -68 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (12 generated)
henrika (OOO until Aug 14)
Tommi, hope you like this one ;-)
4 years, 10 months ago (2016-02-15 15:22:02 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/1695303002/diff/1/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/1/media/audio/mac/audio_low_latency_input_mac.cc#newcode960 media/audio/mac/audio_low_latency_input_mac.cc:960: if (/*IsRunning() &&*/ GetAutomaticGainControl()) { unintentional?
4 years, 10 months ago (2016-02-15 15:30:12 UTC) #4
henrika (OOO until Aug 14)
FYI, Tommi, working on adding a notifier as well to keep track of additional states. ...
4 years, 10 months ago (2016-02-16 12:00:24 UTC) #5
henrika (OOO until Aug 14)
Tommi, I am convinced that we can make some solutions more efficient here. Please check ...
4 years, 10 months ago (2016-02-17 16:20:34 UTC) #7
henrika (OOO until Aug 14)
Tommi: PTAL ;-)
4 years, 10 months ago (2016-02-17 16:24:44 UTC) #8
henrika (OOO until Aug 14)
Adding olka@ for general feedback (as discussed).
4 years, 10 months ago (2016-02-18 10:56:05 UTC) #10
o1ka
General feedback, as discussed. The idea looks good to me, though keep in mind I ...
4 years, 10 months ago (2016-02-18 13:46:23 UTC) #11
henrika (OOO until Aug 14)
Thanks for many valuable comments Olga ;-) PTAL https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc#newcode72 media/audio/mac/audio_low_latency_input_mac.cc:72: PROPERTY_IO_STOPPED_ABNORMALLY ...
4 years, 10 months ago (2016-02-18 15:58:03 UTC) #12
o1ka
https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc#newcode72 media/audio/mac/audio_low_latency_input_mac.cc:72: PROPERTY_IO_STOPPED_ABNORMALLY = 1, On 2016/02/18 15:58:03, henrika wrote: > ...
4 years, 10 months ago (2016-02-18 16:54:30 UTC) #13
henrika (OOO until Aug 14)
https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/40001/media/audio/mac/audio_low_latency_input_mac.cc#newcode72 media/audio/mac/audio_low_latency_input_mac.cc:72: PROPERTY_IO_STOPPED_ABNORMALLY = 1, On 2016/02/18 16:54:30, o1ka wrote: > ...
4 years, 10 months ago (2016-02-19 12:46:12 UTC) #14
henrika (OOO until Aug 14)
Discussed with Tommi, will make some additional changes to keep the notifier alive during the ...
4 years, 10 months ago (2016-02-19 12:47:37 UTC) #15
henrika (OOO until Aug 14)
Tommi, we now create two different UMA stats: (1) Media.Audio.InputDevicePropertyChangedStartupFailedMac and (2) Media.Audio.InputDevicePropertyChangedMac Both filter ...
4 years, 10 months ago (2016-02-19 14:32:20 UTC) #16
tommi (sloooow) - chröme
https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.cc#newcode99 media/audio/mac/audio_low_latency_input_mac.cc:99: DCHECK_LE(result, PROPERTY_MAX); is the dcheck necessary if all the ...
4 years, 10 months ago (2016-02-19 15:17:33 UTC) #17
henrika (OOO until Aug 14)
Thanks Tommi, PTAL ;-) https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.cc#newcode99 media/audio/mac/audio_low_latency_input_mac.cc:99: DCHECK_LE(result, PROPERTY_MAX); Actually no. Removed. ...
4 years, 10 months ago (2016-02-22 12:32:52 UTC) #18
henrika (OOO until Aug 14)
Adding ischerman@ for XML. FYI; I got a warning when I tried to upload XML ...
4 years, 10 months ago (2016-02-22 13:02:29 UTC) #20
tommi (sloooow) - chröme
https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.h File media/audio/mac/audio_low_latency_input_mac.h (right): https://codereview.chromium.org/1695303002/diff/120001/media/audio/mac/audio_low_latency_input_mac.h#newcode244 media/audio/mac/audio_low_latency_input_mac.h:244: // number of times we have been notified about ...
4 years, 10 months ago (2016-02-22 14:16:43 UTC) #21
henrika (OOO until Aug 14)
Was able to remove the lock by always ensuring that the listener is disabled before ...
4 years, 10 months ago (2016-02-22 15:09:58 UTC) #22
henrika (OOO until Aug 14)
ischerman@: if you are OK with the XML parts..many thanks for pushing the button to ...
4 years, 10 months ago (2016-02-22 15:51:23 UTC) #23
Ilya Sherman
On 2016/02/22 13:02:29, henrika wrote: > Adding ischerman@ for XML. > > FYI; I got a ...
4 years, 10 months ago (2016-02-22 18:38:30 UTC) #24
henrika (OOO until Aug 14)
Thanks isherman@. Adding comments only since I don't have access to the source right now. ...
4 years, 10 months ago (2016-02-22 18:51:59 UTC) #25
Ilya Sherman
https://codereview.chromium.org/1695303002/diff/180001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1695303002/diff/180001/tools/metrics/histograms/histograms.xml#newcode58250 tools/metrics/histograms/histograms.xml:58250: + <int value="12" label="Not specified"/> On 2016/02/22 18:51:58, henrika ...
4 years, 10 months ago (2016-02-22 19:30:16 UTC) #26
henrika (OOO until Aug 14)
https://codereview.chromium.org/1695303002/diff/180001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/180001/media/audio/mac/audio_low_latency_input_mac.cc#newcode1132 media/audio/mac/audio_low_latency_input_mac.cc:1132: uma_result = PROPERTY_NOT_SPECIFIED; On 2016/02/22 18:51:58, henrika wrote: > ...
4 years, 10 months ago (2016-02-23 11:34:54 UTC) #27
henrika (OOO until Aug 14)
PTAL. pretty_print.py now returns OK as well.
4 years, 10 months ago (2016-02-23 11:36:28 UTC) #28
tommi (sloooow) - chröme
https://codereview.chromium.org/1695303002/diff/220001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/220001/media/audio/mac/audio_low_latency_input_mac.cc#newcode820 media/audio/mac/audio_low_latency_input_mac.cc:820: OSStatus AUAudioInputStream::DevicePropertyChanged( can we add a thread checker that ...
4 years, 10 months ago (2016-02-23 16:24:59 UTC) #30
Ilya Sherman
Metrics LGTM % a final nit: https://codereview.chromium.org/1695303002/diff/220001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1695303002/diff/220001/tools/metrics/histograms/histograms.xml#newcode18941 tools/metrics/histograms/histograms.xml:18941: + all these ...
4 years, 10 months ago (2016-02-23 18:45:53 UTC) #31
henrika (OOO until Aug 14)
Thanks for all comments. Landing. https://codereview.chromium.org/1695303002/diff/220001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1695303002/diff/220001/media/audio/mac/audio_low_latency_input_mac.cc#newcode820 media/audio/mac/audio_low_latency_input_mac.cc:820: OSStatus AUAudioInputStream::DevicePropertyChanged( Thanks but ...
4 years, 10 months ago (2016-02-24 09:49:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695303002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695303002/240001
4 years, 10 months ago (2016-02-24 09:50:49 UTC) #36
henrika (OOO until Aug 14)
Sorry, pushed the buttons to early. Still need OK from Tommi ;-)
4 years, 10 months ago (2016-02-24 09:52:05 UTC) #37
tommi (sloooow) - chröme
lgtm
4 years, 10 months ago (2016-02-24 10:30:02 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695303002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695303002/240001
4 years, 10 months ago (2016-02-24 10:48:49 UTC) #40
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 10 months ago (2016-02-24 11:06:39 UTC) #42
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 11:08:34 UTC) #44
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/da354f2d1eccb591387b9e13622fb89581b5f0c7
Cr-Commit-Position: refs/heads/master@{#377264}

Powered by Google App Engine
This is Rietveld 408576698