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

Issue 2631333002: [animations] Adds metrics for jank on selected layer animations (Closed)

Created:
3 years, 11 months ago by varkha
Modified:
3 years, 11 months ago
CC:
reveman, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sadrul, Ian Vollick
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[animations] Adds metrics for jank on selected layer animations This CL is WIP to add UMA metrics for "smoothness" factor on selected layer animations. The UI developer would be able to tag selected animations (sequences or elements) with a "name" and then have UMA data available for how smooth (how close to ideal 60 fps) the animation is in the field. BUG=684115 Review-Url: https://codereview.chromium.org/2631333002 Cr-Commit-Position: refs/heads/master@{#446075} Committed: https://chromium.googlesource.com/chromium/src/+/62ba671daf03f09c08257fab4559a31259aa09ce

Patch Set 1 #

Patch Set 2 : Adds UMA reporting for ripples and overview mode (UMA name fix) #

Total comments: 7

Patch Set 3 : Adds UMA reporting for ripples and overview mode (comments) #

Total comments: 2

Patch Set 4 : Adds UMA reporting for ripples and overview mode (unit test) #

Total comments: 2

Patch Set 5 : Adds UMA reporting for ripples and overview mode (test expectations) #

Patch Set 6 : Adds UMA reporting for ripples and overview mode (template) #

Patch Set 7 : Adds UMA reporting for ripples and overview mode (constexpr) #

Patch Set 8 : Adds UMA reporting for ripples and overview mode (extern constexpr) #

Total comments: 12

Patch Set 9 : Adds UMA reporting for ripples and overview mode (committed frames) #

Total comments: 4

Patch Set 10 : Adds UMA reporting for ripples and overview mode (query refresh rate) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -12 lines) Patch
M ash/wm/overview/scoped_overview_animation_settings_aura.cc View 1 6 7 8 3 chunks +51 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -1 line 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M ui/compositor/layer_animation_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/layer_animation_element.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M ui/compositor/layer_animation_element.cc View 1 2 3 4 5 6 7 8 9 5 chunks +31 lines, -8 lines 0 comments Download
M ui/compositor/layer_animation_sequence.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ui/compositor/layer_animation_sequence.cc View 1 4 chunks +11 lines, -2 lines 0 comments Download
M ui/compositor/layer_animator.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M ui/compositor/layer_animator.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ui/compositor/test/test_layer_animation_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/test/test_layer_animation_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (40 generated)
varkha
ajuma@, I wanted to ask you to take a first look at this. I am ...
3 years, 11 months ago (2017-01-18 20:22:44 UTC) #3
reveman
Drive-by: would it be more useful to have perf tests that track these statistics than ...
3 years, 11 months ago (2017-01-18 21:27:53 UTC) #5
ajuma
Perf tests are definitely more actionable, so adding those if possible would be great. I ...
3 years, 11 months ago (2017-01-18 23:02:51 UTC) #6
varkha
https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/compositor.cc#newcode549 ui/compositor/compositor.cc:549: return host_->SourceFrameNumber(); On 2017/01/18 23:02:51, ajuma wrote: > This ...
3 years, 11 months ago (2017-01-20 00:16:47 UTC) #8
ajuma
https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc#newcode554 ui/compositor/layer_animation_element.cc:554: (60.f * duration_.InMillisecondsF())))); On 2017/01/20 00:16:47, varkha wrote: > ...
3 years, 11 months ago (2017-01-20 14:31:58 UTC) #9
varkha
https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc#newcode554 ui/compositor/layer_animation_element.cc:554: (60.f * duration_.InMillisecondsF())))); On 2017/01/20 14:31:58, ajuma wrote: > ...
3 years, 11 months ago (2017-01-20 17:07:58 UTC) #10
sadrul
drive-by: I have questions about things are wired up right now. My understanding of how ...
3 years, 11 months ago (2017-01-20 17:29:43 UTC) #12
ajuma
On 2017/01/20 17:29:43, sadrul wrote: > drive-by: I have questions about things are wired up ...
3 years, 11 months ago (2017-01-20 18:02:52 UTC) #13
ajuma
https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc#newcode554 ui/compositor/layer_animation_element.cc:554: (60.f * duration_.InMillisecondsF())))); On 2017/01/20 17:07:58, varkha wrote: > ...
3 years, 11 months ago (2017-01-20 18:03:05 UTC) #14
varkha
On 2017/01/20 18:03:05, ajuma wrote: > https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc > File ui/compositor/layer_animation_element.cc (right): > > https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc#newcode554 > ...
3 years, 11 months ago (2017-01-20 20:19:20 UTC) #15
varkha
Also added a unit test to verify that the chain of events works.
3 years, 11 months ago (2017-01-20 20:22:45 UTC) #16
ajuma
On 2017/01/20 20:19:20, varkha wrote: > On 2017/01/20 18:03:05, ajuma wrote: > > > https://codereview.chromium.org/2631333002/diff/40001/ui/compositor/layer_animation_element.cc ...
3 years, 11 months ago (2017-01-20 21:10:51 UTC) #17
ajuma
https://codereview.chromium.org/2631333002/diff/80001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2631333002/diff/80001/ui/compositor/layer_unittest.cc#newcode2272 ui/compositor/layer_unittest.cc:2272: EXPECT_GT(reporter.value(), 90); Just to make sure I understand, since ...
3 years, 11 months ago (2017-01-20 21:24:07 UTC) #18
varkha
https://codereview.chromium.org/2631333002/diff/80001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2631333002/diff/80001/ui/compositor/layer_unittest.cc#newcode2272 ui/compositor/layer_unittest.cc:2272: EXPECT_GT(reporter.value(), 90); On 2017/01/20 21:24:07, ajuma wrote: > Just ...
3 years, 11 months ago (2017-01-20 22:05:24 UTC) #19
ajuma
Thanks, just one more thing and then this lgtm % sadrul https://codereview.chromium.org/2631333002/diff/60001/ui/compositor/layer_animator.cc File ui/compositor/layer_animator.cc (right): ...
3 years, 11 months ago (2017-01-20 23:02:06 UTC) #22
varkha
+rkaplow@ for OWNERS in tools/metrics/histograms/
3 years, 11 months ago (2017-01-21 00:03:32 UTC) #32
sadrul
+danakj@ for the remaining ui/compositor change as the sole active compositor owner. I would still ...
3 years, 11 months ago (2017-01-21 03:26:38 UTC) #41
sadrul
btw: please update BUG=TBD to point to a real bug :)
3 years, 11 months ago (2017-01-21 03:26:56 UTC) #42
reveman
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/compositor.cc#newcode528 ui/compositor/compositor.cc:528: ++submitted_frame_number_; This doesn't mean the frame was displayed. If ...
3 years, 11 months ago (2017-01-21 15:27:39 UTC) #43
rkaplow
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/animation_metrics_reporter_template.h File ui/compositor/animation_metrics_reporter_template.h (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/animation_metrics_reporter_template.h#newcode15 ui/compositor/animation_metrics_reporter_template.h:15: void Report(int value) override { UMA_HISTOGRAM_PERCENTAGE(name, value); } you ...
3 years, 11 months ago (2017-01-23 15:47:18 UTC) #44
danakj
ajuma owns the animation stuff and should probably look at this
3 years, 11 months ago (2017-01-23 15:48:53 UTC) #46
danakj
On 2017/01/23 15:48:53, danakj (slow) wrote: > ajuma owns the animation stuff and should probably ...
3 years, 11 months ago (2017-01-23 15:49:11 UTC) #47
danakj
rs LGTM for the unit test
3 years, 11 months ago (2017-01-23 15:49:51 UTC) #48
danakj
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/compositor.cc#newcode528 ui/compositor/compositor.cc:528: ++submitted_frame_number_; On 2017/01/21 15:27:39, reveman wrote: > This doesn't ...
3 years, 11 months ago (2017-01-23 15:52:05 UTC) #49
varkha
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/animation_metrics_reporter_template.h File ui/compositor/animation_metrics_reporter_template.h (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/animation_metrics_reporter_template.h#newcode15 ui/compositor/animation_metrics_reporter_template.h:15: void Report(int value) override { UMA_HISTOGRAM_PERCENTAGE(name, value); } On ...
3 years, 11 months ago (2017-01-24 00:18:57 UTC) #52
varkha
+bruthig@ for ui/views/animation/*ink*.cc OWNERS.
3 years, 11 months ago (2017-01-24 00:54:35 UTC) #56
bruthig
https://codereview.chromium.org/2631333002/diff/320001/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2631333002/diff/320001/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode120 ui/views/animation/flood_fill_ink_drop_ripple.cc:120: UMA_HISTOGRAM_PERCENTAGE("Views.AnimationSmoothness.FloodFillRipple", I'm not sure how helpful it will be ...
3 years, 11 months ago (2017-01-24 15:56:30 UTC) #59
reveman
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc#newcode555 ui/compositor/layer_animation_element.cc:555: const double kFrameInterval = 1000.f / 60.f; On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 17:21:45 UTC) #60
varkha
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc#newcode555 ui/compositor/layer_animation_element.cc:555: const double kFrameInterval = 1000.f / 60.f; On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 20:18:29 UTC) #61
varkha
https://codereview.chromium.org/2631333002/diff/320001/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2631333002/diff/320001/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode120 ui/views/animation/flood_fill_ink_drop_ripple.cc:120: UMA_HISTOGRAM_PERCENTAGE("Views.AnimationSmoothness.FloodFillRipple", On 2017/01/24 15:56:30, bruthig wrote: > I'm not ...
3 years, 11 months ago (2017-01-24 20:23:25 UTC) #62
varkha
https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/2631333002/diff/280001/ui/compositor/layer_animation_element.cc#newcode555 ui/compositor/layer_animation_element.cc:555: const double kFrameInterval = 1000.f / 60.f; On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 23:56:20 UTC) #64
rkaplow
lgtm
3 years, 11 months ago (2017-01-25 15:31:13 UTC) #68
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/2631333002/340001
3 years, 11 months ago (2017-01-25 19:01:38 UTC) #71
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 19:10:28 UTC) #74
Message was sent while issue was closed.
Committed patchset #10 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/62ba671daf03f09c08257fab4559...

Powered by Google App Engine
This is Rietveld 408576698