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

Issue 495983002: Improve logging related to start/stop and failure of audio input streams in Chrome (Closed)

Created:
6 years, 4 months ago by henrika (OOO until Aug 14)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Improve logging related to start/stop and failure of audio input streams in Chrome. BUG=405449 TEST=Manual testing using different WebRTC clients Committed: https://crrev.com/8eec55ab69fe94838dc7a0e5d23102423d54ac76 Cr-Commit-Position: refs/heads/master@{#292622}

Patch Set 1 #

Patch Set 2 : Added AIC logs #

Patch Set 3 : Fine tuning #

Patch Set 4 : Experimental version of AudioManagerBase logging #

Total comments: 30

Patch Set 5 : rebased #

Patch Set 6 : Feedback from xians@ and grunell@ #

Patch Set 7 : Improved logging in AudioManagerBase #

Total comments: 9

Patch Set 8 : Feedback from xians@ #

Total comments: 37

Patch Set 9 : nits #

Total comments: 10

Patch Set 10 : Removed notifier in AudioManager #

Patch Set 11 : Feedback from tommi@ #

Patch Set 12 : nits #

Patch Set 13 : Fixed error in merge #

Total comments: 5

Patch Set 14 : Fixed issue where we log UMA stats too early #

Total comments: 1

Patch Set 15 : nit #

Total comments: 14

Patch Set 16 : tommi@ #

Patch Set 17 : xians@ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -43 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 12 chunks +63 lines, -25 lines 2 comments Download
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -5 lines 0 comments Download
M content/renderer/media/audio_input_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +17 lines, -6 lines 0 comments Download
M media/audio/audio_input_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 39 (1 generated)
henrika (OOO until Aug 14)
Please take a look. Logging now looks like shown in the BUG. My plan was ...
6 years, 4 months ago (2014-08-22 10:49:15 UTC) #1
henrika (OOO until Aug 14)
Patch Set 4 is an attempt to add logging also in media (AudioManagerBase in this ...
6 years, 4 months ago (2014-08-22 14:02:30 UTC) #2
Henrik Grunell
The general approach looks good. Do we have clear cases for that the added logs ...
6 years, 4 months ago (2014-08-22 16:14:43 UTC) #3
henrika (OOO until Aug 14)
Initial reply to: "Do we have clear cases for that the added logs are useful ...
6 years, 4 months ago (2014-08-25 07:18:07 UTC) #4
no longer working on chromium
https://codereview.chromium.org/495983002/diff/60001/content/renderer/media/audio_input_message_filter.cc File content/renderer/media/audio_input_message_filter.cc (right): https://codereview.chromium.org/495983002/diff/60001/content/renderer/media/audio_input_message_filter.cc#newcode203 content/renderer/media/audio_input_message_filter.cc:203: LogMessage(stream_id_, "CreateStream"); Do we really need to log each ...
6 years, 4 months ago (2014-08-25 08:20:05 UTC) #5
henrika (OOO until Aug 14)
Thanks, PTAL. https://codereview.chromium.org/495983002/diff/60001/content/renderer/media/audio_input_message_filter.cc File content/renderer/media/audio_input_message_filter.cc (right): https://codereview.chromium.org/495983002/diff/60001/content/renderer/media/audio_input_message_filter.cc#newcode203 content/renderer/media/audio_input_message_filter.cc:203: LogMessage(stream_id_, "CreateStream"); The idea was to add ...
6 years, 4 months ago (2014-08-25 12:47:45 UTC) #6
henrika (OOO until Aug 14)
I am planning to add some more (using the same style as here). Tommi, care ...
6 years, 4 months ago (2014-08-25 12:49:57 UTC) #7
henrika (OOO until Aug 14)
Added some more logs but will pause until feedback from Tommi on the observer part ...
6 years, 4 months ago (2014-08-25 15:44:29 UTC) #8
no longer working on chromium
I am going to defer to Henrik and Tommi on if these loggings should be ...
6 years, 3 months ago (2014-08-26 08:38:08 UTC) #9
henrika (OOO until Aug 14)
Thanks. I will remove all usage of device_id.
6 years, 3 months ago (2014-08-26 09:38:22 UTC) #10
henrika (OOO until Aug 14)
Thanks Shijing. Done changes based on your feedback. https://codereview.chromium.org/495983002/diff/120001/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/495983002/diff/120001/content/browser/renderer_host/media/audio_input_renderer_host.cc#oldcode362 content/browser/renderer_host/media/audio_input_renderer_host.cc:362: "Audio ...
6 years, 3 months ago (2014-08-26 10:30:10 UTC) #11
henrika (OOO until Aug 14)
Thanks Shijing. Done changes based on your feedback. https://codereview.chromium.org/495983002/diff/120001/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/495983002/diff/120001/content/browser/renderer_host/media/audio_input_renderer_host.cc#oldcode362 content/browser/renderer_host/media/audio_input_renderer_host.cc:362: "Audio ...
6 years, 3 months ago (2014-08-26 10:30:11 UTC) #12
no longer working on chromium
https://codereview.chromium.org/495983002/diff/120001/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/495983002/diff/120001/content/browser/renderer_host/media/audio_input_renderer_host.cc#oldcode362 content/browser/renderer_host/media/audio_input_renderer_host.cc:362: "Audio input stream created successfully. Device name: " + ...
6 years, 3 months ago (2014-08-26 10:54:50 UTC) #13
tommi (sloooow) - chröme
tommi@chromium.org changed reviewers: + dalecurtis@chromium.org
6 years, 3 months ago (2014-08-26 11:42:31 UTC) #14
tommi (sloooow) - chröme
+Dale since this is modifying audiomanager. I personally think this is stretching things a bit ...
6 years, 3 months ago (2014-08-26 11:42:31 UTC) #15
henrika (OOO until Aug 14)
Thanks Tommi. Added one general question to you but did not make any changes at ...
6 years, 3 months ago (2014-08-26 13:56:51 UTC) #16
DaleCurtis
Hmm, you use SendMessageToNativeLog() in AudioRendererHost, while the AudioInputMessageFilter uses WebRtcLogMessage(), on top of that ...
6 years, 3 months ago (2014-08-26 20:09:30 UTC) #17
henrika (OOO until Aug 14)
Thanks Dale. I hear you and just want to make some explanations before I change ...
6 years, 3 months ago (2014-08-27 10:51:06 UTC) #18
Henrik Grunell
On 2014/08/27 10:51:06, henrika wrote: > Thanks Dale. I hear you and just want to ...
6 years, 3 months ago (2014-08-27 11:07:57 UTC) #19
henrika (OOO until Aug 14)
Cleaned up by removing AudioManager from this CL. Henrik G, the problem is that we ...
6 years, 3 months ago (2014-08-27 11:21:54 UTC) #20
henrika (OOO until Aug 14)
Changes based on input from Tommi. https://codereview.chromium.org/495983002/diff/140001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/495983002/diff/140001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode23 content/browser/renderer_host/media/audio_input_renderer_host.cc:23: void LogMessage(int stream_id, ...
6 years, 3 months ago (2014-08-27 13:44:05 UTC) #21
henrika (OOO until Aug 14)
All comments from Dale are addressed by the last check-in as well. https://codereview.chromium.org/495983002/diff/160001/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc ...
6 years, 3 months ago (2014-08-27 13:54:38 UTC) #22
henrika (OOO until Aug 14)
CL is now condensed and cleaned up. Was hoping for some more comments before I ...
6 years, 3 months ago (2014-08-27 13:56:06 UTC) #23
henrika (OOO until Aug 14)
Dale, no more AM.... guess you are off the hook then ;-)
6 years, 3 months ago (2014-08-27 14:04:23 UTC) #24
henrika (OOO until Aug 14)
https://codereview.chromium.org/495983002/diff/140001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/495983002/diff/140001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode309 content/browser/renderer_host/media/audio_input_renderer_host.cc:309: DVLOG(1) << oss.str(); Actually we do. No log is ...
6 years, 3 months ago (2014-08-27 14:26:00 UTC) #25
tommi (sloooow) - chröme
lgtm. We should file a bug to clean all this up once we get to ...
6 years, 3 months ago (2014-08-29 11:32:04 UTC) #26
no longer working on chromium
some nits. lgtm if you address them. https://codereview.chromium.org/495983002/diff/280001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/495983002/diff/280001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode23 content/browser/renderer_host/media/audio_input_renderer_host.cc:23: void LogMessage(int ...
6 years, 3 months ago (2014-08-29 12:33:20 UTC) #27
henrika (OOO until Aug 14)
Fixes based on feedback from Tommi first. Filed crbug.com/408967 to keep track of "remove logging ...
6 years, 3 months ago (2014-08-29 12:39:37 UTC) #28
henrika (OOO until Aug 14)
Thanks Shijing. Will try to land. https://codereview.chromium.org/495983002/diff/280001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/495983002/diff/280001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode23 content/browser/renderer_host/media/audio_input_renderer_host.cc:23: void LogMessage(int stream_id, ...
6 years, 3 months ago (2014-08-29 12:51:30 UTC) #29
henrika (OOO until Aug 14)
The CQ bit was checked by henrika@chromium.org
6 years, 3 months ago (2014-08-29 12:51:59 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/henrika@chromium.org/495983002/320001
6 years, 3 months ago (2014-08-29 12:52:48 UTC) #31
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/495983002/diff/240001/media/audio/audio_input_controller.cc File media/audio/audio_input_controller.cc (right): https://codereview.chromium.org/495983002/diff/240001/media/audio/audio_input_controller.cc#newcode423 media/audio/audio_input_controller.cc:423: ? "AIC::FirstCheckForNoData => data is active" On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 13:12:40 UTC) #32
Henrik Grunell
LGTM. Thanks for cleaning up. A general readability detail opinion. I interpret "A => B" ...
6 years, 3 months ago (2014-08-29 13:32:21 UTC) #33
commit-bot: I haz the power
Committed patchset #17 (id:320001) as e0f6ed64804183c90ff97ffda2825db5580d8cbf
6 years, 3 months ago (2014-08-29 13:53:31 UTC) #34
henrika (OOO until Aug 14)
Tommi, still valid to file a bug (CL landed before I read you comment)? Guess ...
6 years, 3 months ago (2014-08-29 14:05:14 UTC) #35
Henrik Grunell
On 2014/08/29 14:05:14, henrika wrote: > Tommi, still valid to file a bug (CL landed ...
6 years, 3 months ago (2014-08-29 14:23:06 UTC) #36
tommi (sloooow) - chröme
Fwiw => also has a different meaning (leads to or eq+gt) to me than how ...
6 years, 3 months ago (2014-08-29 15:09:25 UTC) #37
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:08:16 UTC) #39
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/8eec55ab69fe94838dc7a0e5d23102423d54ac76
Cr-Commit-Position: refs/heads/master@{#292622}

Powered by Google App Engine
This is Rietveld 408576698