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

Issue 2814043005: media: Report initial video height to UMA (Closed)

Created:
3 years, 8 months ago by xhwang
Modified:
3 years, 8 months ago
CC:
apacible+watch_chromium.org, asvitkine+watch_chromium.org, chromium-reviews, erickung+watch_chromium.org, feature-media-reviews_chromium.org, miu+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Report initial video height to UMA Also fix the issue where the initial video natural size is not reported to MediaLog. BUG=709354 TEST=Manually tested Review-Url: https://codereview.chromium.org/2814043005 Cr-Commit-Position: refs/heads/master@{#465518} Committed: https://chromium.googlesource.com/chromium/src/+/60802656141458897882b4283908e75bb444b420

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments #

Total comments: 7

Patch Set 3 : average #

Total comments: 3

Patch Set 4 : reabse and owner #

Total comments: 15

Patch Set 5 : comments addressed #

Patch Set 6 : remove "average" #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -8 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 3 chunks +37 lines, -8 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (33 generated)
xhwang
dalecurtis: PTAL
3 years, 8 months ago (2017-04-14 17:48:54 UTC) #10
DaleCurtis
https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc#newcode1411 media/blink/webmediaplayer_impl.cc:1411: RecordVideoNaturalSize(rotated_size); Put below l.1415 to avoid duplicate size events? ...
3 years, 8 months ago (2017-04-14 18:30:19 UTC) #11
DaleCurtis
https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc#newcode2369 media/blink/webmediaplayer_impl.cc:2369: // For vertical videos, use it's width instead of ...
3 years, 8 months ago (2017-04-14 18:48:57 UTC) #12
xhwang
Thanks for the comments. PTAL again! https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/20001/media/blink/webmediaplayer_impl.cc#newcode1411 media/blink/webmediaplayer_impl.cc:1411: RecordVideoNaturalSize(rotated_size); On 2017/04/14 ...
3 years, 8 months ago (2017-04-14 20:30:36 UTC) #16
tguilbert
https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode2363 media/blink/webmediaplayer_impl.cc:2363: if (initial_video_height_recorded_) Drive-by: For HLS, our original video size ...
3 years, 8 months ago (2017-04-14 22:00:49 UTC) #19
DaleCurtis
https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode84 media/blink/webmediaplayer_impl.cc:84: #define UMA_HISTOGRAM_VIDEO_HEIGHT(name, sample) \ Define near where used and ...
3 years, 8 months ago (2017-04-14 22:03:38 UTC) #20
xhwang
https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode2363 media/blink/webmediaplayer_impl.cc:2363: if (initial_video_height_recorded_) On 2017/04/14 22:00:49, tguilbert wrote: > Drive-by: ...
3 years, 8 months ago (2017-04-14 22:04:53 UTC) #21
DaleCurtis
Also I just changed that code here :) https://codereview.chromium.org/2822543006/
3 years, 8 months ago (2017-04-14 22:13:50 UTC) #24
xhwang
comment-only https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode84 media/blink/webmediaplayer_impl.cc:84: #define UMA_HISTOGRAM_VIDEO_HEIGHT(name, sample) \ On 2017/04/14 22:03:38, DaleCurtis ...
3 years, 8 months ago (2017-04-14 22:18:06 UTC) #25
xhwang
Add "average". PTAL again! https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode2360 media/blink/webmediaplayer_impl.cc:2360: // TODO(xhwang): Also report "average" ...
3 years, 8 months ago (2017-04-14 23:07:41 UTC) #30
xhwang
Add "average". PTAL again! https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/40001/media/blink/webmediaplayer_impl.cc#newcode2360 media/blink/webmediaplayer_impl.cc:2360: // TODO(xhwang): Also report "average" ...
3 years, 8 months ago (2017-04-14 23:07:41 UTC) #31
xhwang
isherman: Please UMA OWNERS review!
3 years, 8 months ago (2017-04-14 23:08:05 UTC) #32
DaleCurtis
media/ lgtm https://codereview.chromium.org/2814043005/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1416 media/blink/webmediaplayer_impl.cc:1416: // WatchTimeReporter doesn't report metrics for empty ...
3 years, 8 months ago (2017-04-17 19:05:59 UTC) #35
xhwang
https://codereview.chromium.org/2814043005/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/60001/tools/metrics/histograms/histograms.xml#newcode28400 tools/metrics/histograms/histograms.xml:28400: + <owner>xhwang@chromium.org</owner> On 2017/04/17 19:05:59, DaleCurtis wrote: > mlamouri@ ...
3 years, 8 months ago (2017-04-17 19:41:18 UTC) #37
xhwang
isherman: Please UMA OWNERS review!
3 years, 8 months ago (2017-04-17 19:41:39 UTC) #39
Ilya Sherman
https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode28411 tools/metrics/histograms/histograms.xml:28411: +<histogram name="Media.VideoHeight.Average" units="pixels"> nit: Please add the attribute base="true", ...
3 years, 8 months ago (2017-04-17 20:10:14 UTC) #40
xhwang
comments addressed
3 years, 8 months ago (2017-04-18 05:50:29 UTC) #43
xhwang
isherman: Please see the change and reply to your comments. Thanks! https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): ...
3 years, 8 months ago (2017-04-18 05:52:37 UTC) #44
Ilya Sherman
https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode28415 tools/metrics/histograms/histograms.xml:28415: + video frame size is available (e.g. during MSE ...
3 years, 8 months ago (2017-04-18 05:58:54 UTC) #45
xhwang
Comments-only. https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode28415 tools/metrics/histograms/histograms.xml:28415: + video frame size is available (e.g. during ...
3 years, 8 months ago (2017-04-18 06:39:51 UTC) #46
DaleCurtis
nit: 360p, don't know of any 320p :) https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode28415 tools/metrics/histograms/histograms.xml:28415: + ...
3 years, 8 months ago (2017-04-18 17:46:22 UTC) #47
xhwang
On 2017/04/18 17:46:22, DaleCurtis wrote: > nit: 360p, don't know of any 320p :) oops, ...
3 years, 8 months ago (2017-04-18 23:17:35 UTC) #48
DaleCurtis
sgtm, I didn't expect the repeated logging to be contentious. As discussed offline though, I ...
3 years, 8 months ago (2017-04-18 23:31:48 UTC) #49
Ilya Sherman
Narrowing this CL to only report initial height SGTM2. https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode120495 tools/metrics/histograms/histograms.xml:120495: ...
3 years, 8 months ago (2017-04-19 00:32:50 UTC) #50
Ilya Sherman
https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2814043005/diff/80001/tools/metrics/histograms/histograms.xml#newcode28415 tools/metrics/histograms/histograms.xml:28415: + video frame size is available (e.g. during MSE ...
3 years, 8 months ago (2017-04-19 00:35:10 UTC) #51
xhwang
On 2017/04/19 00:32:50, Ilya Sherman wrote: > Narrowing this CL to only report initial height ...
3 years, 8 months ago (2017-04-19 05:29:28 UTC) #54
xhwang
> Sampling seems like a reasonable solution to me. (You'd probably want to > randomize ...
3 years, 8 months ago (2017-04-19 05:35:42 UTC) #55
xhwang
I updated the CL to only report the initial height UMA, and to use 50 ...
3 years, 8 months ago (2017-04-19 05:36:16 UTC) #56
Ilya Sherman
On 2017/04/19 05:35:42, xhwang_slow wrote: > > Sampling seems like a reasonable solution to me. ...
3 years, 8 months ago (2017-04-19 05:52:22 UTC) #57
Ilya Sherman
The metrics in the latest patch set LGTM, by the way. Thanks! https://codereview.chromium.org/2814043005/diff/120001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc ...
3 years, 8 months ago (2017-04-19 05:52:45 UTC) #58
xhwang
https://codereview.chromium.org/2814043005/diff/120001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2814043005/diff/120001/media/blink/webmediaplayer_impl.cc#newcode2395 media/blink/webmediaplayer_impl.cc:2395: #undef UMA_HISTOGRAM_VIDEO_HEIGHT On 2017/04/19 05:52:45, Ilya Sherman wrote: > ...
3 years, 8 months ago (2017-04-19 06:03:50 UTC) #59
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/2814043005/120001
3 years, 8 months ago (2017-04-19 06:04:41 UTC) #63
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 07:30:17 UTC) #66
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/60802656141458897882b4283908...

Powered by Google App Engine
This is Rietveld 408576698