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

Issue 1367403003: Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer (Closed)

Created:
5 years, 2 months ago by Tima Vaisburd
Modified:
5 years, 2 months ago
Reviewers:
xhwang, qinmin, Ilya Sherman
CC:
chromium-reviews, posciak+watch_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, asvitkine+watch_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mtplayer-drm
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer Added 4 new histograms: Media.MSE.LateAudioFrames, Media.MSE.LateVideoFrames, Media.MSE.PlaybackDuration, Media.MSE.Starvations. Each player holds MediaStatistics object which gathers events during playback and calculates and reports results after the playback is stopped. BUG=407577 Committed: https://crrev.com/1ea2b2ca612e9889a5638b83f355176e7ea2c990 Cr-Commit-Position: refs/heads/master@{#351975}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Addressed most of the comments #

Total comments: 32

Patch Set 3 : Addressed Xiaohan's comments #

Total comments: 19

Patch Set 4 : Fixes for first frame and frequent MediaSourcePlayer starvations, addressed comments #

Total comments: 4

Patch Set 5 : Removed a comment that's no longer correct #

Patch Set 6 : Rebased #

Patch Set 7 : Attempt to fix clang compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -46 lines) Patch
M media/base/android/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/android/audio_decoder_job.h View 2 chunks +5 lines, -1 line 0 comments Download
M media/base/android/audio_decoder_job.cc View 1 2 3 3 chunks +21 lines, -3 lines 0 comments Download
M media/base/android/media_codec_audio_decoder.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M media/base/android/media_codec_audio_decoder.cc View 1 2 3 5 chunks +20 lines, -3 lines 0 comments Download
M media/base/android/media_codec_decoder.h View 1 2 3 4 5 6 4 chunks +16 lines, -8 lines 0 comments Download
M media/base/android/media_codec_decoder.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M media/base/android/media_codec_decoder_unittest.cc View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M media/base/android/media_codec_player.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M media/base/android/media_codec_player.cc View 1 2 3 8 chunks +22 lines, -4 lines 0 comments Download
M media/base/android/media_codec_video_decoder.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/media_codec_video_decoder.cc View 1 2 3 5 chunks +18 lines, -4 lines 0 comments Download
M media/base/android/media_decoder_job.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M media/base/android/media_decoder_job.cc View 1 2 3 3 chunks +17 lines, -4 lines 0 comments Download
M media/base/android/media_source_player.h View 2 chunks +5 lines, -0 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 2 3 8 chunks +21 lines, -4 lines 0 comments Download
A media/base/android/media_statistics.h View 1 2 3 1 chunk +88 lines, -0 lines 0 comments Download
A media/base/android/media_statistics.cc View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
M media/base/android/video_decoder_job.h View 1 chunk +4 lines, -4 lines 0 comments Download
M media/base/android/video_decoder_job.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M media/media.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
Tima Vaisburd
PTAL xhwang@ for additions to directory isherman@ for histograms.xml
5 years, 2 months ago (2015-09-29 05:06:26 UTC) #2
qinmin
https://codereview.chromium.org/1367403003/diff/1/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1367403003/diff/1/media/base/android/audio_decoder_job.cc#newcode128 media/base/android/audio_decoder_job.cc:128: if (frame_statistics_ && !next_frame_time_limit_.is_null() && I think we can ...
5 years, 2 months ago (2015-09-29 23:47:44 UTC) #3
Ilya Sherman
https://codereview.chromium.org/1367403003/diff/1/media/base/android/media_statistics.cc File media/base/android/media_statistics.cc (right): https://codereview.chromium.org/1367403003/diff/1/media/base/android/media_statistics.cc#newcode18 media/base/android/media_statistics.cc:18: const int kNumDurationSlots = 1800; nit: Please leave a ...
5 years, 2 months ago (2015-09-30 04:20:03 UTC) #4
Tima Vaisburd
https://codereview.chromium.org/1367403003/diff/1/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://codereview.chromium.org/1367403003/diff/1/media/base/android/audio_decoder_job.cc#newcode128 media/base/android/audio_decoder_job.cc:128: if (frame_statistics_ && !next_frame_time_limit_.is_null() && On 2015/09/29 23:47:44, qinmin ...
5 years, 2 months ago (2015-09-30 18:50:10 UTC) #5
xhwang
My comments are split into two PS again. Sorry for the confusion. https://chromiumcodereview.appspot.com/1367403003/diff/1/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc ...
5 years, 2 months ago (2015-09-30 21:02:58 UTC) #6
Ilya Sherman
LGTM, though I'd still recommend 50 buckets rather than 60. (Also, I have a couple ...
5 years, 2 months ago (2015-10-01 07:19:20 UTC) #7
Tima Vaisburd
Xiaohan, I think I did not miss any of your comments. PTAL. https://codereview.chromium.org/1367403003/diff/1/media/base/android/media_codec_decoder.cc File media/base/android/media_codec_decoder.cc ...
5 years, 2 months ago (2015-10-01 20:05:16 UTC) #8
xhwang
lgtm with some nits https://chromiumcodereview.appspot.com/1367403003/diff/40001/media/base/android/audio_decoder_job.cc File media/base/android/audio_decoder_job.cc (right): https://chromiumcodereview.appspot.com/1367403003/diff/40001/media/base/android/audio_decoder_job.cc#newcode131 media/base/android/audio_decoder_job.cc:131: frame_statistics_->AddLateFrame(current_time - next_frame_time_limit_); This DCHECK ...
5 years, 2 months ago (2015-10-01 21:58:58 UTC) #9
qinmin
lgtm
5 years, 2 months ago (2015-10-01 23:04:56 UTC) #10
Tima Vaisburd
The Shaka player testing forced me to do some more changes, you might want to ...
5 years, 2 months ago (2015-10-02 00:44:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/100001
5 years, 2 months ago (2015-10-02 00:57:37 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/48585) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 2 months ago (2015-10-02 01:02:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/100001
5 years, 2 months ago (2015-10-02 01:19:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/90673)
5 years, 2 months ago (2015-10-02 01:26:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/100001
5 years, 2 months ago (2015-10-02 01:29:08 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/128596)
5 years, 2 months ago (2015-10-02 01:36:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/120001
5 years, 2 months ago (2015-10-02 01:43:46 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/76855)
5 years, 2 months ago (2015-10-02 06:40:17 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/120001
5 years, 2 months ago (2015-10-02 07:06:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367403003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367403003/120001
5 years, 2 months ago (2015-10-02 07:07:32 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-02 08:26:42 UTC) #35
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 08:27:39 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1ea2b2ca612e9889a5638b83f355176e7ea2c990
Cr-Commit-Position: refs/heads/master@{#351975}

Powered by Google App Engine
This is Rietveld 408576698