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

Issue 11293143: Turn overdraw metrics on only when about:tracing is recording. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
jamesr
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer, jscholler
Visibility:
Public.

Description

Turn overdraw metrics on only when about:tracing is recording. Now that we're in chromium, we can tell if about:tracing is enabled ot not! Turn on overdraw metrics, and their expensive computations, only when about:tracing is turned on. When we do turn them on, we don't want the performance characteristics of the system to suddenly change, or the tracing is not very meaningful! So, we track the number of pixels read, instead of written, for overdraw (which should mostly be the same with the new rasterScale feature). This computation is very cheap compared to the old one. R=jamesr BUG=119126 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=166464

Patch Set 1 #

Patch Set 2 : Make overdraw computation cheap #

Patch Set 3 : Fixing unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -36 lines) Patch
M cc/layer_tree_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/overdraw_metrics.cc View 1 4 chunks +10 lines, -32 lines 0 comments Download
M cc/quad_culler_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
danakj
8 years, 1 month ago (2012-11-07 04:19:47 UTC) #1
jamesr
How useful is this even when tracing is on? I like disabling expensive things when ...
8 years, 1 month ago (2012-11-07 04:44:01 UTC) #2
danakj
On 2012/11/07 04:44:01, jamesr wrote: > How useful is this even when tracing is on? ...
8 years, 1 month ago (2012-11-07 04:49:36 UTC) #3
danakj
I'm not sure what you mean by isolated trace. Like, not in the "cc" category?
8 years, 1 month ago (2012-11-07 04:50:19 UTC) #4
jamesr
On 2012/11/07 04:49:36, danakj wrote: > On 2012/11/07 04:44:01, jamesr wrote: > > How useful ...
8 years, 1 month ago (2012-11-07 04:52:46 UTC) #5
jamesr
On 2012/11/07 04:50:19, danakj wrote: > I'm not sure what you mean by isolated trace. ...
8 years, 1 month ago (2012-11-07 04:53:17 UTC) #6
danakj
The other option is to stop mapping to the target space. Currently we count the ...
8 years, 1 month ago (2012-11-07 04:56:20 UTC) #7
danakj
Uploaded cheap metrics version.
8 years, 1 month ago (2012-11-07 05:00:19 UTC) #8
jamesr
lgtm, doesn't look so good to the unit tests (kinda surprised we have unit tests ...
8 years, 1 month ago (2012-11-07 05:48:30 UTC) #9
danakj
On 2012/11/07 05:48:30, jamesr wrote: > lgtm, doesn't look so good to the unit tests ...
8 years, 1 month ago (2012-11-07 16:33:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11293143/4002
8 years, 1 month ago (2012-11-07 16:45:27 UTC) #11
commit-bot: I haz the power
8 years, 1 month ago (2012-11-07 16:47:15 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698