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

Issue 2533093002: [LazyParseCSS] Add histogram for rule usage % (Closed)

Created:
4 years ago by Charlie Harrison
Modified:
4 years ago
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, asvitkine+watch_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[LazyParseCSS] Add histogram for rule usage % This patch adds a histogram which tracks a how many style sheets reach certain rule usage milestones (i.e. > 10% rules used). This is useful for determining how worthwhile lazy parsing is in the wild. BUG=642722 Committed: https://crrev.com/1f7a3938ff76d3db59e3f54159bd25a153832357 Cr-Commit-Position: refs/heads/master@{#436279}

Patch Set 1 #

Patch Set 2 : clear up histogram description (trybots prev) #

Total comments: 6

Patch Set 3 : timloh review + add test #

Total comments: 9

Patch Set 4 : isherman review #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -6 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h View 1 2 3 3 chunks +32 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp View 1 2 3 4 chunks +55 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp View 1 2 3 chunks +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
Charlie Harrison
timloh, would you take a quick look at this? I originally wanted to do a ...
4 years ago (2016-11-28 22:31:08 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/2533093002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp File third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp (right): https://codereview.chromium.org/2533093002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp#newcode40 third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp:40: // Minor hack, as grabbing the context is ...
4 years ago (2016-11-30 14:55:22 UTC) #5
Charlie Harrison
Thanks! I decided to write a unit test because this functionality is nontrivial. This led ...
4 years ago (2016-11-30 19:30:38 UTC) #9
Ilya Sherman
https://codereview.chromium.org/2533093002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp File third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp (right): https://codereview.chromium.org/2533093002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp#newcode81 third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp:81: ("Style.LazyUsage.Percent", UsageAll)); This should be UsageAll + 1, i.e. ...
4 years ago (2016-12-01 00:48:21 UTC) #12
Charlie Harrison
Thanks Ilya! https://codereview.chromium.org/2533093002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp File third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp (right): https://codereview.chromium.org/2533093002/diff/40001/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp#newcode81 third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp:81: ("Style.LazyUsage.Percent", UsageAll)); On 2016/12/01 00:48:21, Ilya Sherman ...
4 years ago (2016-12-01 02:43:51 UTC) #15
Ilya Sherman
metrics lgtm https://codereview.chromium.org/2533093002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2533093002/diff/40001/tools/metrics/histograms/histograms.xml#newcode63318 tools/metrics/histograms/histograms.xml:63318: + stylesheet which uses all of its ...
4 years ago (2016-12-01 05:10:54 UTC) #18
Charlie Harrison
Thanks, Timothy would you mind doing one more pass now that the code has changed ...
4 years ago (2016-12-01 14:14:05 UTC) #19
Timothy Loh
On 2016/12/01 14:14:05, Charlie Harrison wrote: > Thanks, Timothy would you mind doing one more ...
4 years ago (2016-12-05 01:44:44 UTC) #20
Charlie Harrison
Thank you, Iet me send to CQ.
4 years ago (2016-12-05 04:05:34 UTC) #21
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/2533093002/60001
4 years ago (2016-12-05 04:05:52 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/317224) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-05 04:08:23 UTC) #26
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/2533093002/80001
4 years ago (2016-12-05 05:24:38 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/347581)
4 years ago (2016-12-05 08:12:16 UTC) #31
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/2533093002/80001
4 years ago (2016-12-05 12:59:46 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-05 13:51:05 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-05 13:53:48 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1f7a3938ff76d3db59e3f54159bd25a153832357
Cr-Commit-Position: refs/heads/master@{#436279}

Powered by Google App Engine
This is Rietveld 408576698