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

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed)

Created:
7 years, 9 months ago by egraether
Modified:
7 years, 9 months ago
Reviewers:
danakj, jamesr, nduca
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats This change adds the class RenderingStatsInstrumentation that manages conditional saving and thread-specific access to a private RenderingStats instance. An instance of RenderingStatsRecorder is created on LayerTreeHost, which passes references to LayerTreeHostImpl and TileManager. Access to reading and writing on the internal RenderingStats instance is guarded by a lock. All rendering stats saving in LayerTreeHost, Single-/ThreadProxy, LayerTreeHostImpl and TileManager has been switched to use the RenderingStatsInstrumentation. Stats collection within Layer::update() still follows the original structure to keep this change small. BUG=181319 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189475 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189621

Patch Set 1 #

Patch Set 2 : Rebase to 187305 #

Patch Set 3 : Early out in methods, pass raw pointers, updated tests #

Total comments: 24

Patch Set 4 : Renamed to RenderingStatsInstrumentation #

Patch Set 5 : Fixed tests #

Total comments: 2

Patch Set 6 : Resolved nit #

Patch Set 7 : Updated to new cc file structure #

Patch Set 8 : Rebase to chromified LayerTreeDebugState #

Patch Set 9 : Rebase to 189021 #

Patch Set 10 : Rebase to 189185 #

Patch Set 11 : Rebase to 189302 #

Patch Set 12 : Rebase to LayerTreeTest #

Total comments: 1

Patch Set 13 : Fixed tests #

Total comments: 2

Patch Set 14 : Updated all tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -293 lines) Patch
M cc/base/worker_pool.h View 1 2 3 4 5 6 4 chunks +3 lines, -11 lines 0 comments Download
M cc/base/worker_pool.cc View 1 2 3 4 5 6 7 8 10 chunks +6 lines, -56 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A cc/debug/rendering_stats_instrumentation.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +74 lines, -0 lines 0 comments Download
A cc/debug/rendering_stats_instrumentation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +164 lines, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -1 line 0 comments Download
M cc/resources/raster_worker_pool.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -17 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 chunks +34 lines, -58 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -2 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -1 line 0 comments Download
M cc/test/fake_proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
A cc/test/fake_rendering_stats_instrumentation.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +20 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +9 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +31 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +10 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +34 lines, -35 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +19 lines, -17 lines 0 comments Download
M cc/trees/proxy.h View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -10 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 3 chunks +0 lines, -6 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +6 lines, -28 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
egraether
This is a first draft and I'm not even sure if this works safely as ...
7 years, 9 months ago (2013-03-09 00:40:54 UTC) #1
egraether
Dana, can you give this a review please? I discussed this patch with Nat in ...
7 years, 9 months ago (2013-03-12 19:31:42 UTC) #2
nduca
lgtm at a high level. Dana, wdyt?
7 years, 9 months ago (2013-03-13 05:53:59 UTC) #3
danakj
I like it. You'll need to rebase and chrome-stylify your changes in LTH (and LTHI ...
7 years, 9 months ago (2013-03-13 17:25:41 UTC) #4
egraether
> You need to move the autolocks in the recorder class to also protect the ...
7 years, 9 months ago (2013-03-13 19:13:05 UTC) #5
egraether
I also learned to not mess with the formating. Again: > You need to move ...
7 years, 9 months ago (2013-03-13 19:19:27 UTC) #6
danakj
On 2013/03/13 19:19:27, egraether wrote: > I also learned to not mess with the formating. ...
7 years, 9 months ago (2013-03-13 21:08:28 UTC) #7
nduca
The bool can and should be outside the lock.
7 years, 9 months ago (2013-03-13 21:16:47 UTC) #8
nduca
You may want to use base::tricky to make it correct though... look at base/debug/trace_event_impl and ...
7 years, 9 months ago (2013-03-13 21:17:31 UTC) #9
egraether
On 2013/03/13 21:17:31, nduca wrote: > You may want to use base::tricky to make it ...
7 years, 9 months ago (2013-03-14 18:57:40 UTC) #10
egraether
https://codereview.chromium.org/12519006/diff/6001/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12519006/diff/6001/cc/layer_tree_host.cc#newcode425 cc/layer_tree_host.cc:425: RenderingStatsRecorder* LayerTreeHost::renderingStatsRecorder() const On 2013/03/13 17:25:41, danakj wrote: > ...
7 years, 9 months ago (2013-03-14 18:58:07 UTC) #11
danakj
On 2013/03/14 18:57:40, egraether wrote: > On 2013/03/13 21:17:31, nduca wrote: > > You may ...
7 years, 9 months ago (2013-03-14 19:16:23 UTC) #12
danakj
LGTM this is a vast improvement, thanks for it! https://codereview.chromium.org/12519006/diff/36001/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12519006/diff/36001/cc/layer_tree_host.cc#newcode495 cc/layer_tree_host.cc:495: ...
7 years, 9 months ago (2013-03-15 17:28:48 UTC) #13
egraether
James, can you have a look at RenderWidget please? https://codereview.chromium.org/12519006/diff/36001/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12519006/diff/36001/cc/layer_tree_host.cc#newcode495 cc/layer_tree_host.cc:495: ...
7 years, 9 months ago (2013-03-15 21:14:26 UTC) #14
jamesr
lgtm
7 years, 9 months ago (2013-03-18 01:04:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/52001
7 years, 9 months ago (2013-03-18 17:51:28 UTC) #16
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=20870
7 years, 9 months ago (2013-03-18 19:53:04 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/10031
7 years, 9 months ago (2013-03-18 20:56:17 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=94499
7 years, 9 months ago (2013-03-18 23:13:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/66001
7 years, 9 months ago (2013-03-19 15:52:08 UTC) #20
commit-bot: I haz the power
Failed to apply patch for cc/resources/tile_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-19 21:40:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/84001
7 years, 9 months ago (2013-03-20 01:32:09 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=95068
7 years, 9 months ago (2013-03-20 02:30:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/84001
7 years, 9 months ago (2013-03-20 02:40:46 UTC) #24
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-20 02:40:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/93001
7 years, 9 months ago (2013-03-20 16:31:59 UTC) #26
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-20 22:11:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/45002
7 years, 9 months ago (2013-03-20 23:54:08 UTC) #28
commit-bot: I haz the power
Change committed as 189475
7 years, 9 months ago (2013-03-21 00:01:24 UTC) #29
tapted
https://chromiumcodereview.appspot.com/12519006/diff/45002/cc/test/fake_layer_tree_host_impl.cc File cc/test/fake_layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/12519006/diff/45002/cc/test/fake_layer_tree_host_impl.cc#newcode10 cc/test/fake_layer_tree_host_impl.cc:10: : rendering_stats_instrumentation_(RenderingStatsInstrumentation::Create()), sheriff drive-by: I'm .. pretty sure the ...
7 years, 9 months ago (2013-03-21 02:27:22 UTC) #30
egraether
On 2013/03/21 02:27:22, tapted wrote: > https://chromiumcodereview.appspot.com/12519006/diff/45002/cc/test/fake_layer_tree_host_impl.cc > File cc/test/fake_layer_tree_host_impl.cc (right): > > https://chromiumcodereview.appspot.com/12519006/diff/45002/cc/test/fake_layer_tree_host_impl.cc#newcode10 > ...
7 years, 9 months ago (2013-03-21 02:54:41 UTC) #31
egraether
Dana, can you have a look at the test fix please? https://codereview.chromium.org/12519006/diff/118001/cc/test/fake_layer_tree_host_impl.h File cc/test/fake_layer_tree_host_impl.h (right): ...
7 years, 9 months ago (2013-03-21 04:01:02 UTC) #32
danakj
LGTM+cq https://codereview.chromium.org/12519006/diff/118001/cc/test/fake_layer_tree_host_impl.h File cc/test/fake_layer_tree_host_impl.h (right): https://codereview.chromium.org/12519006/diff/118001/cc/test/fake_layer_tree_host_impl.h#newcode31 cc/test/fake_layer_tree_host_impl.h:31: FakeRenderingStatsInstrumentation stats_instrumentation_; On 2013/03/21 04:01:02, egraether wrote: > ...
7 years, 9 months ago (2013-03-21 04:21:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/118001
7 years, 9 months ago (2013-03-21 04:25:26 UTC) #34
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-21 04:25:37 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/egraether@chromium.org/12519006/80002
7 years, 9 months ago (2013-03-21 16:36:22 UTC) #36
commit-bot: I haz the power
7 years, 9 months ago (2013-03-21 16:38:46 UTC) #37
Message was sent while issue was closed.
Change committed as 189621

Powered by Google App Engine
This is Rietveld 408576698