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

Issue 2665163002: Refactor AudioInputController and split stat by stream type. (Closed)

Created:
3 years, 10 months ago by Max Morin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, ossu-chromium, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor AudioInputController and split stat by stream type. Clean up confusing usage of "low latency". Remove a factory function since there were two similar ones. Before this CL, "low latency" could either refer to requesting a low latency stream type from the AudioManager or that the stream was requested over IPC, which was confusing. Now, it always refers to the kind of stream requested. This also means that the streams for which Media.AudioInputControllerSessionSilenceReport is reported changes. The Media.AudioInputControllerCaptureStartupSuccess stat is split into three separate stats: Media.{{High,Low}Latency,Virtual}AudioCaptureStartupSuccess, where Virtual refers to stream types obtained by redirecting output streams rather than going through the platform audio system (such as tab capture). BUG=600536 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2665163002 Cr-Commit-Position: refs/heads/master@{#447973} Committed: https://chromium.googlesource.com/chromium/src/+/3500cacdae6e8bcdb6371576ca7d08d7465eb9e7

Patch Set 1 #

Patch Set 2 : Refactor AudioInputController. #

Patch Set 3 : New stats. #

Patch Set 4 : Also split CallbackError #

Total comments: 17

Patch Set 5 : Tommi's comments #

Total comments: 8

Patch Set 6 : . #

Patch Set 7 : Compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -212 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M media/audio/audio_file_writer.h View 2 chunks +5 lines, -1 line 0 comments Download
M media/audio/audio_input_controller.h View 1 2 3 4 12 chunks +50 lines, -60 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 4 5 6 13 chunks +100 lines, -124 lines 0 comments Download
M media/audio/audio_input_controller_unittest.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M media/audio/test_audio_input_controller_factory.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M media/audio/test_audio_input_controller_factory.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 10 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
Max Morin
Tommi: PTAL
3 years, 10 months ago (2017-02-01 09:32:58 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/2665163002/diff/60001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (left): https://codereview.chromium.org/2665163002/diff/60001/content/browser/renderer_host/media/audio_input_renderer_host.cc#oldcode374 content/browser/renderer_host/media/audio_input_renderer_host.cc:374: // TODO(grunell): Clean up the low latency terminology so ...
3 years, 10 months ago (2017-02-01 21:07:26 UTC) #6
Max Morin
PTAL. Also CC Ossu and R Dale. Dale: Do these new stats look good to ...
3 years, 10 months ago (2017-02-02 09:54:57 UTC) #7
Max Morin
Really +R Dale.
3 years, 10 months ago (2017-02-02 09:56:17 UTC) #9
tommi (sloooow) - chröme
lgtm. I have some suggestions below that I'll leave up to you. https://codereview.chromium.org/2665163002/diff/60001/media/audio/audio_input_controller.cc File media/audio/audio_input_controller.cc ...
3 years, 10 months ago (2017-02-02 14:14:21 UTC) #10
Max Morin
Holte: PTAL at histograms.xml https://codereview.chromium.org/2665163002/diff/80001/media/audio/audio_input_controller.cc File media/audio/audio_input_controller.cc (right): https://codereview.chromium.org/2665163002/diff/80001/media/audio/audio_input_controller.cc#newcode428 media/audio/audio_input_controller.cc:428: UMA_HISTOGRAM_LONG_TIMES("Media.InputStreamWithoutCallbackDuration", On 2017/02/02 14:14:21, tommi ...
3 years, 10 months ago (2017-02-02 15:37:53 UTC) #12
DaleCurtis
Defer to your team for this. What makes them fine or not is whatever plans ...
3 years, 10 months ago (2017-02-02 20:43:55 UTC) #18
DaleCurtis
rs-lgtm in case you need my stamp in addition to tommi's.
3 years, 10 months ago (2017-02-02 20:44:46 UTC) #20
Steven Holte
histograms lgtm
3 years, 10 months ago (2017-02-03 02:56:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2665163002/120001
3 years, 10 months ago (2017-02-03 08:39:03 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 10:15:07 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/3500cacdae6e8bcdb6371576ca7d...

Powered by Google App Engine
This is Rietveld 408576698