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

Issue 1075523002: cc: Add UMA stats for record and raster time. (Closed)

Created:
5 years, 8 months ago by jbroman
Modified:
5 years, 8 months ago
CC:
asvitkine+watch_chromium.org, cc-bugs_chromium.org, chrishtr, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add UMA stats for record and raster time. These should provide a basic smoke test for real-world regressions from Slimming Paint phase 1. BUG=471873 Committed: https://crrev.com/187bc57e8b032fea86a401a7fd7c19378f79da5b Cr-Commit-Position: refs/heads/master@{#325360}

Patch Set 1 #

Total comments: 6

Patch Set 2 : use area actually recorded #

Total comments: 3

Patch Set 3 : move timers into recording source implementations #

Patch Set 4 : fix histograms.xml #

Total comments: 6

Patch Set 5 : merge with master #

Patch Set 6 : retry bad upload #

Patch Set 7 : merge with master #

Patch Set 8 : explicitly handle and test edge cases #

Patch Set 9 : change constructor/destructor visibility #

Total comments: 6

Patch Set 10 : make sampled time at least 1us, per chrishtr #

Patch Set 11 : rename histograms #

Total comments: 8

Patch Set 12 : merge with master #

Patch Set 13 : rename histograms #

Patch Set 14 : merge with master #

Patch Set 15 : intersect with recorded_viewport_ #

Total comments: 10

Patch Set 16 : isherman comments, esp. renaming of histograms #

Patch Set 17 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -0 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A cc/base/histograms.h View 1 2 3 4 5 6 7 8 9 1 chunk +75 lines, -0 lines 0 comments Download
A cc/base/histograms.cc View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -0 lines 0 comments Download
A cc/base/histograms_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/display_list_recording_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +13 lines, -0 lines 0 comments Download
M cc/resources/picture_pile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +15 lines, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (11 generated)
enne (OOO)
https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc#newcode177 cc/layers/picture_layer.cc:177: visible_layer_rect.size().GetArea() / elapsed.InMillisecondsF()); visible layer rect is an inaccurate ...
5 years, 8 months ago (2015-04-08 20:18:46 UTC) #2
jbroman
https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc#newcode177 cc/layers/picture_layer.cc:177: visible_layer_rect.size().GetArea() / elapsed.InMillisecondsF()); On 2015/04/08 20:18:45, enne wrote: > ...
5 years, 8 months ago (2015-04-08 20:37:42 UTC) #3
enne (OOO)
https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/1075523002/diff/1/cc/layers/picture_layer.cc#newcode177 cc/layers/picture_layer.cc:177: visible_layer_rect.size().GetArea() / elapsed.InMillisecondsF()); On 2015/04/08 20:37:42, jbroman wrote: > ...
5 years, 8 months ago (2015-04-08 21:03:49 UTC) #4
jbroman
Is this generally what you mean? (Modulo unit tests, which I haven't yet written.) https://codereview.chromium.org/1075523002/diff/20001/cc/resources/recording_source.h ...
5 years, 8 months ago (2015-04-09 17:06:54 UTC) #5
enne (OOO)
https://codereview.chromium.org/1075523002/diff/20001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/1075523002/diff/20001/cc/layers/picture_layer.cc#newcode163 cc/layers/picture_layer.cc:163: &recorded_area); Yeah, I think this is the right metric. ...
5 years, 8 months ago (2015-04-09 17:37:35 UTC) #6
jbroman
Note also that there already are large differences arising from the fact that the recording ...
5 years, 8 months ago (2015-04-09 20:54:07 UTC) #7
jbroman
(whoops, fixing name/description mismatches in histograms.xml)
5 years, 8 months ago (2015-04-09 20:55:26 UTC) #8
enne (OOO)
That is a pretty big difference. It's not clear to me that those numbers are ...
5 years, 8 months ago (2015-04-09 21:11:43 UTC) #9
jbroman
On 2015/04/09 21:11:43, enne wrote: > That is a pretty big difference. It's not clear ...
5 years, 8 months ago (2015-04-10 16:49:46 UTC) #10
jbroman
+chrishtr, since he reported this bug and may have opinions about what kind of metrics ...
5 years, 8 months ago (2015-04-10 17:19:32 UTC) #11
chrishtr
https://codereview.chromium.org/1075523002/diff/60001/cc/base/histogram_macros.h File cc/base/histogram_macros.h (right): https://codereview.chromium.org/1075523002/diff/60001/cc/base/histogram_macros.h#newcode16 cc/base/histogram_macros.h:16: // pixels per millisecond. Why the difference in time ...
5 years, 8 months ago (2015-04-10 17:41:39 UTC) #13
jbroman
PTAL. Handling division-by-zero edge cases demands unit test, which demands refactoring. Apologies for the inflated ...
5 years, 8 months ago (2015-04-13 19:34:00 UTC) #14
chrishtr
https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc File cc/base/histograms_unittest.cc (right): https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc#newcode51 cc/base/histograms_unittest.cc:51: std::numeric_limits<Sample>::max()); Shouldn't this case just bail and not record ...
5 years, 8 months ago (2015-04-13 19:54:09 UTC) #15
jbroman
https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc File cc/base/histograms_unittest.cc (right): https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc#newcode51 cc/base/histograms_unittest.cc:51: std::numeric_limits<Sample>::max()); On 2015/04/13 19:54:09, chrishtr wrote: > Shouldn't this ...
5 years, 8 months ago (2015-04-13 19:58:04 UTC) #16
chrishtr
https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc File cc/base/histograms_unittest.cc (right): https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc#newcode51 cc/base/histograms_unittest.cc:51: std::numeric_limits<Sample>::max()); On 2015/04/13 at 19:58:04, jbroman wrote: > On ...
5 years, 8 months ago (2015-04-13 20:06:19 UTC) #17
jbroman
https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc File cc/base/histograms_unittest.cc (right): https://codereview.chromium.org/1075523002/diff/160001/cc/base/histograms_unittest.cc#newcode51 cc/base/histograms_unittest.cc:51: std::numeric_limits<Sample>::max()); On 2015/04/13 20:06:19, chrishtr wrote: > On 2015/04/13 ...
5 years, 8 months ago (2015-04-13 20:52:52 UTC) #18
chrishtr
lgtm
5 years, 8 months ago (2015-04-13 20:54:46 UTC) #19
enne (OOO)
https://codereview.chromium.org/1075523002/diff/200001/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1075523002/diff/200001/cc/resources/display_list_recording_source.cc#newcode85 cc/resources/display_list_recording_source.cc:85: for (Region::Iterator it(*invalidation); it.has_rect(); it.next()) This is a petty ...
5 years, 8 months ago (2015-04-13 21:52:27 UTC) #20
jbroman
https://codereview.chromium.org/1075523002/diff/200001/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1075523002/diff/200001/cc/resources/display_list_recording_source.cc#newcode85 cc/resources/display_list_recording_source.cc:85: for (Region::Iterator it(*invalidation); it.has_rect(); it.next()) On 2015/04/13 21:52:26, enne ...
5 years, 8 months ago (2015-04-14 14:44:36 UTC) #21
jbroman
https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc#newcode201 cc/resources/picture_pile.cc:201: for (Region::Iterator it(*invalidation); it.has_rect(); it.next()) On 2015/04/13 21:52:27, enne ...
5 years, 8 months ago (2015-04-14 16:02:17 UTC) #22
enne (OOO)
lgtm, thanks for putting up with all the back and forth. :) https://codereview.chromium.org/1075523002/diff/200001/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc ...
5 years, 8 months ago (2015-04-14 16:54:10 UTC) #23
enne (OOO)
https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc#newcode201 cc/resources/picture_pile.cc:201: for (Region::Iterator it(*invalidation); it.has_rect(); it.next()) On 2015/04/14 16:02:17, jbroman ...
5 years, 8 months ago (2015-04-14 16:55:19 UTC) #24
jbroman
On 2015/04/14 16:55:19, enne wrote: > https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc > File cc/resources/picture_pile.cc (right): > > https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc#newcode201 > ...
5 years, 8 months ago (2015-04-14 18:14:29 UTC) #25
jbroman
On 2015/04/14 16:55:19, enne wrote: > https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc > File cc/resources/picture_pile.cc (right): > > https://codereview.chromium.org/1075523002/diff/200001/cc/resources/picture_pile.cc#newcode201 > ...
5 years, 8 months ago (2015-04-14 18:16:47 UTC) #26
jbroman
https://codereview.chromium.org/1075523002/diff/280001/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1075523002/diff/280001/cc/resources/display_list_recording_source.cc#newcode90 cc/resources/display_list_recording_source.cc:90: if (!updated && !invalidation->Intersects(recorded_viewport_)) Possibly this check could use ...
5 years, 8 months ago (2015-04-14 18:18:12 UTC) #27
enne (OOO)
https://codereview.chromium.org/1075523002/diff/280001/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1075523002/diff/280001/cc/resources/display_list_recording_source.cc#newcode90 cc/resources/display_list_recording_source.cc:90: if (!updated && !invalidation->Intersects(recorded_viewport_)) On 2015/04/14 at 18:18:12, jbroman ...
5 years, 8 months ago (2015-04-14 19:55:27 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075523002/280001
5 years, 8 months ago (2015-04-14 20:14:45 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/56322)
5 years, 8 months ago (2015-04-14 20:25:51 UTC) #33
jbroman
+isherman for tools/metrics
5 years, 8 months ago (2015-04-14 20:28:54 UTC) #35
Ilya Sherman
https://codereview.chromium.org/1075523002/diff/280001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/1075523002/diff/280001/cc/resources/tile_manager.cc#newcode15 cc/resources/tile_manager.cc:15: #include "base/metrics/histogram_macros.h" nit: Not needed? https://codereview.chromium.org/1075523002/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): ...
5 years, 8 months ago (2015-04-14 21:31:50 UTC) #36
jbroman
https://codereview.chromium.org/1075523002/diff/280001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/1075523002/diff/280001/cc/resources/tile_manager.cc#newcode15 cc/resources/tile_manager.cc:15: #include "base/metrics/histogram_macros.h" On 2015/04/14 21:31:50, Ilya Sherman wrote: > ...
5 years, 8 months ago (2015-04-15 15:18:16 UTC) #37
Ilya Sherman
LGTM
5 years, 8 months ago (2015-04-15 22:58:28 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075523002/300001
5 years, 8 months ago (2015-04-15 23:22:26 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/56694)
5 years, 8 months ago (2015-04-15 23:33:11 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075523002/320001
5 years, 8 months ago (2015-04-15 23:35:01 UTC) #46
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 8 months ago (2015-04-16 00:38:55 UTC) #47
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 00:39:51 UTC) #48
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/187bc57e8b032fea86a401a7fd7c19378f79da5b
Cr-Commit-Position: refs/heads/master@{#325360}

Powered by Google App Engine
This is Rietveld 408576698