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

Issue 1776353006: [Chromecast] Add metrics for logging platform A/V bitrate estimates. (Closed)

Created:
4 years, 9 months ago by ejason
Modified:
4 years, 9 months ago
Reviewers:
halliwell, kmackay
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org, 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

[Chromecast] Add metrics for logging platform A/V bitrate estimates. BUG=internal b/26496758 Committed: https://crrev.com/24fbb39886e90b81175b7fc9f8fc79677a53d176 Cr-Commit-Position: refs/heads/master@{#380787}

Patch Set 1 #

Patch Set 2 : Fix issue with handling measured bitrate values of 0 #

Patch Set 3 : Fix formatting issue #

Total comments: 10

Patch Set 4 : Refactored to correctly handle state transitions and eliminate duplication #

Total comments: 2

Patch Set 5 : Add const qualifier to bytes_decoded accessor #

Total comments: 12

Patch Set 6 : clean up handling of tracking initial sample time #

Patch Set 7 : remove unnecessary calls to ResetBitrateState() #

Total comments: 4

Patch Set 8 : Remove unnecessary initialization #

Total comments: 4

Patch Set 9 : Handle different audio/video pipeline configurations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -2 lines) Patch
M chromecast/media/cma/pipeline/audio_pipeline_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/av_pipeline_impl.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/av_pipeline_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +53 lines, -1 line 0 comments Download
M chromecast/media/cma/pipeline/video_pipeline_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (7 generated)
ejason
On 2016/03/10 02:04:03, ejason wrote: > mailto:jasonroberts@google.com changed reviewers: > + mailto:halliwell@chromium.org Metrics for estimated ...
4 years, 9 months ago (2016-03-10 02:05:29 UTC) #4
halliwell
On 2016/03/10 02:05:29, ejason wrote: > On 2016/03/10 02:04:03, ejason wrote: > > mailto:jasonroberts@google.com changed ...
4 years, 9 months ago (2016-03-10 14:47:11 UTC) #5
ejason
On 2016/03/10 14:47:11, halliwell wrote: > On 2016/03/10 02:05:29, ejason wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:22:54 UTC) #6
ejason
On 2016/03/10 17:22:54, ejason wrote: > On 2016/03/10 14:47:11, halliwell wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:23:44 UTC) #7
ejason
On 2016/03/10 17:23:44, ejason wrote: > On 2016/03/10 17:22:54, ejason wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:36:08 UTC) #8
lcwu1
On 2016/03/10 17:36:08, ejason wrote: > On 2016/03/10 17:23:44, ejason wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:43:46 UTC) #9
ejason
On 2016/03/10 17:43:46, lcwu1 wrote: > On 2016/03/10 17:36:08, ejason wrote: > > On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:48:36 UTC) #10
halliwell
https://codereview.chromium.org/1776353006/diff/30001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc File chromecast/media/cma/pipeline/audio_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/30001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc#newcode29 chromecast/media/cma/pipeline/audio_pipeline_impl.cc:29: chromecast::metrics::CastMetricsHelper::GetInstance(); nit, no need for 'chromecast::' https://codereview.chromium.org/1776353006/diff/30001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc#newcode103 chromecast/media/cma/pipeline/audio_pipeline_impl.cc:103: elapsed_time_delta_ ...
4 years, 9 months ago (2016-03-10 17:57:54 UTC) #11
ejason
https://codereview.chromium.org/1776353006/diff/30001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc File chromecast/media/cma/pipeline/audio_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/30001/chromecast/media/cma/pipeline/audio_pipeline_impl.cc#newcode29 chromecast/media/cma/pipeline/audio_pipeline_impl.cc:29: chromecast::metrics::CastMetricsHelper::GetInstance(); On 2016/03/10 17:57:54, halliwell wrote: > nit, no ...
4 years, 9 months ago (2016-03-11 00:24:45 UTC) #12
halliwell
I'm not sure I trust the new logic either? Sequence A: UpdateMediaTime UpdateStatistics UpdateStatistics UpdateMediaTime ...
4 years, 9 months ago (2016-03-11 02:04:32 UTC) #13
ejason
https://codereview.chromium.org/1776353006/diff/50001/chromecast/media/cma/pipeline/av_pipeline_impl.h File chromecast/media/cma/pipeline/av_pipeline_impl.h (right): https://codereview.chromium.org/1776353006/diff/50001/chromecast/media/cma/pipeline/av_pipeline_impl.h#newcode59 chromecast/media/cma/pipeline/av_pipeline_impl.h:59: } On 2016/03/11 02:04:32, halliwell wrote: > nit: const ...
4 years, 9 months ago (2016-03-11 17:33:41 UTC) #14
ejason
4 years, 9 months ago (2016-03-11 17:33:44 UTC) #15
halliwell
On 2016/03/11 17:33:44, ejason wrote: Duh, previous comments can be ignored. UpdateStatistics is only called ...
4 years, 9 months ago (2016-03-11 17:34:44 UTC) #16
kmackay
https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode61 chromecast/media/cma/pipeline/media_pipeline_impl.cc:61: if (estimated_bitrate_in_kbps > 0) { nit: invert logic if ...
4 years, 9 months ago (2016-03-11 17:47:40 UTC) #17
halliwell
https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode58 chromecast/media/cma/pipeline/media_pipeline_impl.cc:58: base::StringPiece metric) { + a nit: No need to ...
4 years, 9 months ago (2016-03-11 18:12:47 UTC) #18
ejason
https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/70001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode58 chromecast/media/cma/pipeline/media_pipeline_impl.cc:58: base::StringPiece metric) { On 2016/03/11 18:12:46, halliwell wrote: > ...
4 years, 9 months ago (2016-03-11 20:18:08 UTC) #19
kmackay
lgtm % nits https://codereview.chromium.org/1776353006/diff/110001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/110001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode61 chromecast/media/cma/pipeline/media_pipeline_impl.cc:61: if (estimated_bitrate_in_kbps <= 0) { nit: ...
4 years, 9 months ago (2016-03-11 21:07:27 UTC) #20
ejason
https://codereview.chromium.org/1776353006/diff/110001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/110001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode61 chromecast/media/cma/pipeline/media_pipeline_impl.cc:61: if (estimated_bitrate_in_kbps <= 0) { On 2016/03/11 21:07:26, kmackay ...
4 years, 9 months ago (2016-03-11 21:11:44 UTC) #21
halliwell
Spotted a crash bug - but looks good otherwise :) https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode443 ...
4 years, 9 months ago (2016-03-11 21:22:36 UTC) #22
ejason
https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode443 chromecast/media/cma/pipeline/media_pipeline_impl.cc:443: audio_pipeline_->bytes_decoded_since_last_update(); On 2016/03/11 21:22:36, halliwell wrote: > It's possible ...
4 years, 9 months ago (2016-03-11 22:14:46 UTC) #23
halliwell
On 2016/03/11 22:14:46, ejason wrote: > https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc > File chromecast/media/cma/pipeline/media_pipeline_impl.cc (right): > > https://codereview.chromium.org/1776353006/diff/130001/chromecast/media/cma/pipeline/media_pipeline_impl.cc#newcode443 > ...
4 years, 9 months ago (2016-03-11 23:01:44 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776353006/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776353006/150001
4 years, 9 months ago (2016-03-11 23:11:43 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 9 months ago (2016-03-11 23:54:25 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 23:57:02 UTC) #31
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/24fbb39886e90b81175b7fc9f8fc79677a53d176
Cr-Commit-Position: refs/heads/master@{#380787}

Powered by Google App Engine
This is Rietveld 408576698