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

Issue 2218963003: Added metrics for background video playback. (Closed)

Created:
4 years, 4 months ago by whywhat
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added metrics for background video playback. Record the amount of time continouous background video playback happens. Record each time the render frame media is shown/hidden/resumed/paused. Record each time the render frame media is resumed and paused in the background. BUG=576248 TEST=browser test + manual testing Committed: https://crrev.com/534a9e9d5c8b52484023821e69736d4ce63bc925 Cr-Commit-Position: refs/heads/master@{#412665}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added PowerObserver #

Total comments: 18

Patch Set 3 : Removed the PowerObserver logic, revised metrics descriptions #

Total comments: 4

Patch Set 4 : Got UserMetricsAction back in action and fixed a typo in the histogram description #

Patch Set 5 : Renamed the histogram and changed the buckets. Added a TODO #

Patch Set 6 : Updated the browser test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -3 lines) Patch
M content/renderer/media/renderer_webmediaplayer_delegate.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 1 2 3 4 4 chunks +44 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 1 2 3 4 5 2 chunks +37 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 2 chunks +43 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (19 generated)
whywhat
PTaL mlamouri for the logic isherman for tools/metrics/ dalecurtis for content/renderer/media/
4 years, 4 months ago (2016-08-05 16:14:49 UTC) #2
DaleCurtis
https://codereview.chromium.org/2218963003/diff/1/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/1/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode222 content/renderer/media/renderer_webmediaplayer_delegate.cc:222: base::TimeTicks::Now() - background_video_playing_start_time_); Keep in mind that once you ...
4 years, 4 months ago (2016-08-05 17:39:22 UTC) #7
whywhat
Added PowerObserver
4 years, 4 months ago (2016-08-05 20:30:47 UTC) #8
whywhat
https://codereview.chromium.org/2218963003/diff/1/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/1/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode222 content/renderer/media/renderer_webmediaplayer_delegate.cc:222: base::TimeTicks::Now() - background_video_playing_start_time_); On 2016/08/05 at 17:39:22, DaleCurtis wrote: ...
4 years, 4 months ago (2016-08-05 20:49:24 UTC) #11
mlamouri (slow - plz ping)
Didn't look at the tests yet but apart from the powermonitor usage, it looks good. ...
4 years, 4 months ago (2016-08-08 13:19:31 UTC) #14
DaleCurtis
https://codereview.chromium.org/2218963003/diff/20001/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/20001/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode45 content/renderer/media/renderer_webmediaplayer_delegate.cc:45: power_suspended_time_ = base::TimeTicks::Now(); On 2016/08/08 at 13:19:30, Mounir Lamouri ...
4 years, 4 months ago (2016-08-08 18:26:45 UTC) #15
Ilya Sherman
https://codereview.chromium.org/2218963003/diff/20001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/2218963003/diff/20001/tools/metrics/actions/actions.xml#newcode8499 tools/metrics/actions/actions.xml:8499: <action name="Media.Hidden"> Is this always a user-initiated action, or ...
4 years, 4 months ago (2016-08-08 22:09:10 UTC) #16
whywhat
Removed the PowerObserver logic, revised metrics descriptions
4 years, 4 months ago (2016-08-11 21:35:45 UTC) #17
whywhat
PTAL https://codereview.chromium.org/2218963003/diff/20001/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/20001/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode21 content/renderer/media/renderer_webmediaplayer_delegate.cc:21: content::RenderThread::Get()->RecordAction(action); On 2016/08/08 at 13:19:30, Mounir Lamouri wrote: ...
4 years, 4 months ago (2016-08-11 21:51:04 UTC) #18
DaleCurtis
That's not really what I meant :) It works, but we really shouldn't be building ...
4 years, 4 months ago (2016-08-12 00:39:55 UTC) #23
whywhat
On 2016/08/12 at 00:39:55, dalecurtis wrote: > That's not really what I meant :) It ...
4 years, 4 months ago (2016-08-17 01:00:17 UTC) #24
DaleCurtis
That CL operates on media time which is invariant under suspend/resume. Mostly I was suggesting ...
4 years, 4 months ago (2016-08-17 01:01:55 UTC) #25
Ilya Sherman
metrics lgtm, thanks. https://codereview.chromium.org/2218963003/diff/40001/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/40001/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode20 content/renderer/media/renderer_webmediaplayer_delegate.cc:20: content::RenderThread::Get()->RecordAction(base::UserMetricsAction(action)); The purpose of base::UserMetricsAction is ...
4 years, 4 months ago (2016-08-17 01:17:15 UTC) #26
whywhat
Got UserMetricsAction back in action and fixed a typo in the histogram description
4 years, 4 months ago (2016-08-17 18:02:49 UTC) #27
whywhat
https://codereview.chromium.org/2218963003/diff/40001/content/renderer/media/renderer_webmediaplayer_delegate.cc File content/renderer/media/renderer_webmediaplayer_delegate.cc (right): https://codereview.chromium.org/2218963003/diff/40001/content/renderer/media/renderer_webmediaplayer_delegate.cc#newcode20 content/renderer/media/renderer_webmediaplayer_delegate.cc:20: content::RenderThread::Get()->RecordAction(base::UserMetricsAction(action)); On 2016/08/17 at 01:17:14, Ilya Sherman wrote: > ...
4 years, 4 months ago (2016-08-17 18:03:34 UTC) #28
DaleCurtis
lgtm if you want to keep this android only, but I think the metric name ...
4 years, 4 months ago (2016-08-17 20:36:39 UTC) #29
DaleCurtis
See also the discussion on my CL about bucket sizes since you might end up ...
4 years, 4 months ago (2016-08-17 20:37:43 UTC) #30
whywhat
On 2016/08/17 at 20:37:43, dalecurtis wrote: > See also the discussion on my CL about ...
4 years, 4 months ago (2016-08-17 20:58:50 UTC) #31
whywhat
Renamed the histogram and changed the buckets. Added a TODO
4 years, 4 months ago (2016-08-17 21:06:26 UTC) #32
whywhat
Updated the browser test
4 years, 4 months ago (2016-08-17 21:17:54 UTC) #36
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/2218963003/100001
4 years, 4 months ago (2016-08-17 21:18:35 UTC) #39
Ilya Sherman
On 2016/08/17 21:06:26, whywhat wrote: > Renamed the histogram and changed the buckets. Added a ...
4 years, 4 months ago (2016-08-17 21:21:02 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-17 22:16:28 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/534a9e9d5c8b52484023821e69736d4ce63bc925 Cr-Commit-Position: refs/heads/master@{#412665}
4 years, 4 months ago (2016-08-17 22:24:26 UTC) #43
whywhat
4 years, 4 months ago (2016-08-17 22:24:41 UTC) #44
Message was sent while issue was closed.
On 2016/08/17 at 21:21:02, isherman wrote:
> On 2016/08/17 21:06:26, whywhat wrote:
> > Renamed the histogram and changed the buckets. Added a TODO
> 
> This CL still LGTM; but for future reference, please double-check with a
metrics reviewer prior to landing changes to a histogram, even if they're just
to the bucket layout or name.  Both of those are things that I pay attention to
in my review.  Thanks!

Sure! Sorry :)

Powered by Google App Engine
This is Rietveld 408576698