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

Issue 510913005: Add native log and uma stat when all input shared memory buffers are full (Closed)

Created:
6 years, 3 months ago by no longer working on chromium
Modified:
5 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add native log and uma stat when all input shared memory buffers are full. It is a serious problem when all the buffer are full, theoretically this might be able to happen if the renderer is slowed on consuming the buffer and eventually seriously underrun. This patch adds log for us to figure out if it can happen on real life. BUG=399835 TEST=bots

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : addressed the comments. #

Total comments: 4

Patch Set 4 : added unittest and addressed comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -24 lines) Patch
M content/browser/renderer_host/media/audio_input_sync_writer.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 2 3 6 chunks +41 lines, -13 lines 0 comments Download
M media/audio/audio_input_controller.h View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/audio_input_device.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_input_device.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
A media/audio/audio_input_device_unittest.cc View 1 2 3 1 chunk +215 lines, -0 lines 1 comment Download
M media/media.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 15 (1 generated)
no longer working on chromium
xians@chromium.org changed reviewers: + asvitkine@chromium.org, tommi@chromium.org
6 years, 3 months ago (2014-08-29 08:51:00 UTC) #1
no longer working on chromium
Tommi and Alex, could you please review this CL? Thanks, SX
6 years, 3 months ago (2014-08-29 08:51:20 UTC) #2
tommi (sloooow) - chröme
It seems that we're changing the behavior a little bit in addition to adding stats ...
6 years, 3 months ago (2014-08-29 09:16:43 UTC) #3
no longer working on chromium
Patchset #3 (id:40001) has been deleted
6 years, 3 months ago (2014-08-29 11:10:11 UTC) #4
no longer working on chromium
Hi Tommi, additional to the logging, I addressed Henrik's TODO to combine Write() and Send() ...
6 years, 3 months ago (2014-08-29 11:14:16 UTC) #5
no longer working on chromium
https://codereview.chromium.org/510913005/diff/20001/media/audio/audio_input_device.cc File media/audio/audio_input_device.cc (right): https://codereview.chromium.org/510913005/diff/20001/media/audio/audio_input_device.cc#newcode314 media/audio/audio_input_device.cc:314: buffer->params.size = 0; On 2014/08/29 09:16:43, tommi wrote: > ...
6 years, 3 months ago (2014-08-29 11:15:20 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/510913005/diff/60001/content/browser/renderer_host/media/audio_input_sync_writer.cc File content/browser/renderer_host/media/audio_input_sync_writer.cc (right): https://codereview.chromium.org/510913005/diff/60001/content/browser/renderer_host/media/audio_input_sync_writer.cc#newcode38 content/browser/renderer_host/media/audio_input_sync_writer.cc:38: } Nit: Add "// namespace" and a blank line ...
6 years, 3 months ago (2014-08-29 22:22:19 UTC) #7
no longer working on chromium
Tommi and Alexei, please take another look. Dale, may I have your owner stamp for ...
6 years, 3 months ago (2014-09-02 10:00:21 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/510913005/diff/80001/media/audio/audio_input_device_unittest.cc File media/audio/audio_input_device_unittest.cc (right): https://codereview.chromium.org/510913005/diff/80001/media/audio/audio_input_device_unittest.cc#newcode96 media/audio/audio_input_device_unittest.cc:96: 441), Did you get a chance to run tests ...
6 years, 3 months ago (2014-09-02 12:03:34 UTC) #10
Alexei Svitkine (slow)
lgtm
6 years, 3 months ago (2014-09-02 14:45:03 UTC) #11
DaleCurtis
What about the PPAPI / NaCl input code?
6 years, 3 months ago (2014-09-03 21:55:48 UTC) #12
no longer working on chromium
Hi guys, I found out that in fast shutdown mode, the renderer goes away without ...
6 years, 3 months ago (2014-09-11 11:41:15 UTC) #13
DaleCurtis
Hmm, I thought AudioRendererHost::OnChannelClosing/OnDestruct() handled that.
6 years, 3 months ago (2014-09-11 17:52:49 UTC) #14
Henrik Grunell
6 years, 2 months ago (2014-10-06 05:55:14 UTC) #15
On 2014/09/11 17:52:49, DaleCurtis wrote:
> Hmm, I thought AudioRendererHost::OnChannelClosing/OnDestruct() handled that.

Any update on the progress here?

Powered by Google App Engine
This is Rietveld 408576698