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

Issue 34623009: Revamp style resolver stats (Closed)

Created:
7 years, 2 months ago by esprehn
Modified:
7 years, 1 month ago
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, Inactive
Visibility:
Public.

Description

Revamp style resolver stats Instead of the stats being behind a bunch of macros and needing to be enabled at compile time we make them runtime enabled and expose them through Internals. With this new infrastructure you can do internals.setStyleResolverStatsEnabled(true) in a test and then trigger a recalc and finally call internals.styleResolverStatsTotalsReport() to get a text dump of lots of interesting statistics. We can then land tests that dump these statistics to track improvements or regressions in the matched property cache or style sharing logic. We might also consider adding a runtime flag to print out this information, or even making it so that the web inspector could expose how much style sharing vs actual rule matching a given page is doing. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161894

Patch Set 1 #

Patch Set 2 : Add a separate flag for slow stats #

Patch Set 3 : fix a typo #

Patch Set 4 : add missing inline #

Patch Set 5 : rebase #

Patch Set 6 : Fix build and remove the test #

Patch Set 7 : fix stats for mac, crazy StyleResolver constructor side effects #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -164 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/SharedStyleFinder.cpp View 1 2 3 4 5 6 3 chunks +22 lines, -19 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 3 4 5 6 4 chunks +10 lines, -80 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 8 chunks +37 lines, -44 lines 0 comments Download
A + Source/core/css/resolver/StyleResolverStats.h View 1 2 3 4 5 1 chunk +32 lines, -18 lines 0 comments Download
A Source/core/css/resolver/StyleResolverStats.cpp View 1 2 3 4 5 1 chunk +87 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 4 chunks +17 lines, -3 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 2 chunks +30 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
esprehn
7 years, 2 months ago (2013-10-23 00:13:58 UTC) #1
leviw_travelin_and_unemployed
I like the idea of having this on in general without the DOM crawl. This ...
7 years, 2 months ago (2013-10-23 01:37:42 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/34623009/2
7 years, 2 months ago (2013-10-23 01:41:59 UTC) #3
ojan
It's kind of a bummer that we ship this to users. Also, it's kind of ...
7 years, 2 months ago (2013-10-23 02:02:49 UTC) #4
esprehn
On 2013/10/23 02:02:49, ojan wrote: > It's kind of a bummer that we ship this ...
7 years, 2 months ago (2013-10-23 02:30:40 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-23 02:31:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/34623009/200001
7 years, 2 months ago (2013-10-23 02:38:39 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=8530
7 years, 2 months ago (2013-10-23 05:05:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/34623009/200001
7 years, 2 months ago (2013-10-23 07:06:41 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=8560
7 years, 2 months ago (2013-10-23 09:58:07 UTC) #10
esprehn
On 2013/10/23 09:58:07, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 1 month ago (2013-10-31 18:29:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/34623009/430001
7 years, 1 month ago (2013-10-31 19:31:32 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=9669
7 years, 1 month ago (2013-10-31 22:53:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/34623009/560001
7 years, 1 month ago (2013-11-13 07:53:27 UTC) #14
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 09:05:05 UTC) #15
Message was sent while issue was closed.
Change committed as 161894

Powered by Google App Engine
This is Rietveld 408576698