Add audio output logging |
||||||||
Issue descriptionChrome Version: 57 OS: all For audio input, there are useful log statements (https://cs.chromium.org/chromium/src/media/audio/audio_input_controller.cc?type=cs&q=aic::ondata&sq=package:chromium&l=488). It'd be great to have similar log points for audio output as well, so we can see in client logs what audio streams are opened and whether we get callbacks.
,
Apr 21 2017
,
Apr 21 2017
Sorry to make this a list of all the things I want for Christmas, but it would also be nice if Audio(Output|Input)Controller could report if an audio device seems to do the wrong number of callbacks (by e.g. checking # of callbacks every few seconds).
,
May 12 2017
And also, we might want a common prefix for all of our log lines. Rather than "[AIC]", "[AIRH]", et c., use something like "[Chrome Audio]" to make sure we can easily find all of our log lines.
,
May 12 2017
Good point!
,
May 12 2017
Assigning to Oskar who's looking at output logging. I think we should have separate bugs for #1, #3, and #4. Those are great ideas! For #4 it's good to keep in mind that we should keep strings as short as possible.
,
May 23 2017
I'm looking at the AudioOutputController and it does, indeed, lack the clever logs like average audio level and possible hardware volume and mute states. It does, however, have TRACE_EVENTs for the basic operations (DoCreate, DoPlay, etc.). Do they show up with sufficient context in logs alread, or should I add explicit logging of those as well (as AOC::DoCreate, etc. then, to match the input side)?
,
May 23 2017
The trace events only show up when collecting traces. We probably want logs to MediaStreamManager like for input: https://cs.chromium.org/chromium/src/content/browser/renderer_host/media/audio_input_renderer_host.cc?l=44. Note that it's not possible to access MediaStreamManager directly from AudioOutputController, as AudioOutputController is in media. That's why the input controller has the "OnLog" callback.
,
May 23 2017
Great, thanks! I'll replicate these calls from the input controller as well, then.
,
Jun 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9e1250518374b610d8a23e8b87c44a717a8c919a commit 9e1250518374b610d8a23e8b87c44a717a8c919a Author: ossu <ossu@chromium.org> Date: Thu Jun 01 12:27:29 2017 Added initial set of logging for AudioOutputController. BUG=chromium:714119 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2900043002 Cr-Commit-Position: refs/heads/master@{#476257} [modify] https://crrev.com/9e1250518374b610d8a23e8b87c44a717a8c919a/content/browser/renderer_host/media/audio_output_delegate_impl.cc [modify] https://crrev.com/9e1250518374b610d8a23e8b87c44a717a8c919a/media/audio/audio_output_controller.cc [modify] https://crrev.com/9e1250518374b610d8a23e8b87c44a717a8c919a/media/audio/audio_output_controller.h [modify] https://crrev.com/9e1250518374b610d8a23e8b87c44a717a8c919a/media/audio/audio_output_controller_unittest.cc
,
Jun 1 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/05a9ef01217b8c47c69f5d3960d63cfab1c673b0 commit 05a9ef01217b8c47c69f5d3960d63cfab1c673b0 Author: ossu <ossu@chromium.org> Date: Thu Jun 01 12:35:10 2017 Added logging of average power levels to AudioOutputController. BUG=chromium:714119 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2902823005 Cr-Commit-Position: refs/heads/master@{#476259} [modify] https://crrev.com/05a9ef01217b8c47c69f5d3960d63cfab1c673b0/media/audio/audio_output_controller.cc [modify] https://crrev.com/05a9ef01217b8c47c69f5d3960d63cfab1c673b0/media/audio/audio_output_controller.h
,
Jun 13 2017
Hi! I'm planning to propose these two changes for cherry-picking into M60 - I believe the added logging would help us track down problems. Wanted to check with you guys (Max, Olga, Henrik) if you see any reason not to. The changes seems safe enough, right?
,
Jun 13 2017
Not sure if release owners will approve, but I agree it's a safe merge and would be nice to have. Doesn't hurt to ask.
,
Jun 13 2017
They should be fine.
,
Jun 15 2017
Requesting to merge the changes in comments #10 and #11 to M60. It's a couple of small changes (logging only) which would help us to triage and track down audio issues. As such, it would be great to have them sooner rather than later.
,
Jun 15 2017
This bug requires manual review: M60 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 16 2017
,
Jun 18 2017
Logging changes that are quite safe per comment 15. Approving merge to M60.
,
Jun 19 2017
I've merge the changes. Doesn't seem like they're picked up automatically, so here: https://chromium.googlesource.com/chromium/src/+/9b33e2b30e6d0caddb4c1792097eafca01efc9bc (https://chromium-review.googlesource.com/c/538756/) https://chromium.googlesource.com/chromium/src/+/739282e4031314b4683fa47471da88d85d8dd956 (https://chromium-review.googlesource.com/c/538718/)
,
Jun 19 2017
Thanks, grunell@! |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by maxmorin@chromium.org
, Apr 21 2017