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

Issue 2856783002: Autoplay time metric (Closed)

Created:
3 years, 7 months ago by hubbe
Modified:
3 years, 7 months ago
CC:
mlamouri (slow - plz ping), blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, DaleCurtis, dglazkov+blink, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Autoplay time metric We're going to run an experiment to make the "canplaythrough" event fire according to spec instead of at the same time as "canplay" this will sometimes delay autoplay, and we want to know how much, so let's add a metric for that. BUG=73609 Review-Url: https://codereview.chromium.org/2856783002 Cr-Commit-Position: refs/heads/master@{#472331} Committed: https://chromium.googlesource.com/chromium/src/+/7272b31c2cd71e1ef2f1b0161920d2e040eb5424

Patch Set 1 #

Total comments: 5

Patch Set 2 : comments addressed #

Total comments: 3

Patch Set 3 : added OnLoadStarted() #

Total comments: 9

Patch Set 4 : plumbed load type through #

Total comments: 2

Patch Set 5 : remove MS postfix #

Total comments: 2

Patch Set 6 : histogram description update #

Total comments: 8

Patch Set 7 : comments addressed #

Total comments: 2

Patch Set 8 : use loadstart event #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -5 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.h View 1 2 3 4 5 6 7 5 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp View 1 2 3 4 5 6 7 6 chunks +47 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 3 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 75 (44 generated)
hubbe
3 years, 7 months ago (2017-05-01 23:33:12 UTC) #4
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode51 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:51: int32_t autoplay_wait_time_ms = static_cast<int32_t>( Do we need to distinguish ...
3 years, 7 months ago (2017-05-01 23:44:55 UTC) #5
hubbe
https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode51 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:51: int32_t autoplay_wait_time_ms = static_cast<int32_t>( On 2017/05/01 23:44:55, Zhiqiang Zhang ...
3 years, 7 months ago (2017-05-02 00:05:31 UTC) #8
Zhiqiang Zhang (Slow)
Put some comments on "autoplay by attribute". Otherwise, lgtm https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/1/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode69 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:69: ...
3 years, 7 months ago (2017-05-02 00:12:06 UTC) #9
DaleCurtis
I don't think this is right, we create the autoplay helper at HTMLME creation time, ...
3 years, 7 months ago (2017-05-02 00:21:21 UTC) #11
Zhiqiang Zhang (Slow)
On 2017/05/02 at 00:21:21, dalecurtis wrote: > I don't think this is right, we create ...
3 years, 7 months ago (2017-05-02 00:27:10 UTC) #12
hubbe
PTAL
3 years, 7 months ago (2017-05-02 20:57:49 UTC) #17
Zhiqiang Zhang (Slow)
On 2017/05/02 at 20:57:49, hubbe wrote: > PTAL lgtm
3 years, 7 months ago (2017-05-02 21:02:53 UTC) #18
DaleCurtis
https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode50 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:50: void AutoplayUmaHelper::OnLoadStarted() { Probably should take the type. We ...
3 years, 7 months ago (2017-05-02 21:05:28 UTC) #19
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode74 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:74: DEFINE_STATIC_LOCAL(CustomCountHistogram, wait_time_video_attrib_histogram, On 2017/05/02 at 21:05:28, DaleCurtis wrote: > ...
3 years, 7 months ago (2017-05-02 21:21:22 UTC) #20
DaleCurtis
If you try some sample sites out what kind of values do you see? https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp ...
3 years, 7 months ago (2017-05-02 21:36:38 UTC) #21
hubbe
https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode50 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:50: void AutoplayUmaHelper::OnLoadStarted() { On 2017/05/02 21:05:28, DaleCurtis wrote: > ...
3 years, 7 months ago (2017-05-02 22:33:27 UTC) #24
hubbe
https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/40001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode58 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:58: std::min<int64_t>(MonotonicallyIncreasingTimeMS() - load_start_time_ms_, On 2017/05/02 22:33:26, hubbe wrote: > ...
3 years, 7 months ago (2017-05-03 20:37:24 UTC) #27
DaleCurtis
lgtm then, needs histogram reviewer. https://codereview.chromium.org/2856783002/diff/60001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/60001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode77 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:77: ("Media.Video.Autoplay.Video.Attribute.WaitTimeMS", 1, I think ...
3 years, 7 months ago (2017-05-04 21:22:07 UTC) #28
hubbe
+mpearson for histograms.xml https://codereview.chromium.org/2856783002/diff/60001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/60001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode77 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:77: ("Media.Video.Autoplay.Video.Attribute.WaitTimeMS", 1, On 2017/05/04 21:22:07, DaleCurtis_OOO_May_5_To_May23 ...
3 years, 7 months ago (2017-05-04 22:31:08 UTC) #32
hubbe
-mpearson, +rkaplow for histograms.xml
3 years, 7 months ago (2017-05-08 18:16:52 UTC) #36
rkaplow
lgtm
3 years, 7 months ago (2017-05-09 18:23:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856783002/80001
3 years, 7 months ago (2017-05-09 18:27:28 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/265404)
3 years, 7 months ago (2017-05-09 19:14:52 UTC) #42
Mark P
drive-by comment; sorry I somehow didn't see the original code review request. --mark https://codereview.chromium.org/2856783002/diff/80001/tools/metrics/histograms/histograms.xml File ...
3 years, 7 months ago (2017-05-09 22:09:00 UTC) #44
hubbe
https://codereview.chromium.org/2856783002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2856783002/diff/80001/tools/metrics/histograms/histograms.xml#newcode28497 tools/metrics/histograms/histograms.xml:28497: + Records time until audio starts based on autoplay ...
3 years, 7 months ago (2017-05-11 18:10:34 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856783002/100001
3 years, 7 months ago (2017-05-11 18:11:44 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/434316)
3 years, 7 months ago (2017-05-11 18:24:44 UTC) #54
hubbe
+mlamouri@ for HTMLMediaElement.*
3 years, 7 months ago (2017-05-11 18:44:49 UTC) #56
Mark P
histograms.xml lgtm for the record; I know robert already approved it.
3 years, 7 months ago (2017-05-12 17:00:39 UTC) #57
mlamouri (slow - plz ping)
The change itself sgtm but I have one high level comment regarding one metric (in ...
3 years, 7 months ago (2017-05-15 14:31:21 UTC) #58
hubbe
PTAL https://codereview.chromium.org/2856783002/diff/100001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/100001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode53 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:53: } On 2017/05/15 14:31:21, mlamouri wrote: > style: ...
3 years, 7 months ago (2017-05-15 22:32:00 UTC) #60
mlamouri (slow - plz ping)
lgtm with comment applied. https://codereview.chromium.org/2856783002/diff/120001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/120001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode53 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:53: } Instead of adding a ...
3 years, 7 months ago (2017-05-16 12:59:41 UTC) #64
hubbe
https://codereview.chromium.org/2856783002/diff/120001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2856783002/diff/120001/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp#newcode53 third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:53: } On 2017/05/16 12:59:40, mlamouri wrote: > Instead of ...
3 years, 7 months ago (2017-05-16 20:57:13 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856783002/140001
3 years, 7 months ago (2017-05-16 23:56:14 UTC) #72
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 04:57:09 UTC) #75
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/7272b31c2cd71e1ef2f1b0161920...

Powered by Google App Engine
This is Rietveld 408576698