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

Issue 2687023003: [LazyParseCSS] Add metrics for total # of rules at 0% and 100% usage (Closed)

Created:
3 years, 10 months ago by Charlie Harrison
Modified:
3 years, 10 months ago
Reviewers:
jwd, rune
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 metrics for total # of rules at 0% and 100% usage Metrics on Android were showing large % of sheets with 100% usage, that we still lazily parse. This patch will help illuminate if this is an issue in practice, by logging how much smaller these are than the average sheet we lazily parse. Ideally, these will be small enough that we won't need to add any gating behavior and we can still lazily parse these, even if they don't need it. BUG=685623 Review-Url: https://codereview.chromium.org/2687023003 Cr-Commit-Position: refs/heads/master@{#450397} Committed: https://chromium.googlesource.com/chromium/src/+/146eafbb2d1135f23696e2acca9a9c79cfa9b871

Patch Set 1 #

Total comments: 2

Patch Set 2 : rune review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -17 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp View 1 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp View 2 chunks +32 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +16 lines, -0 lines 1 comment Download

Messages

Total messages: 18 (11 generated)
Charlie Harrison
Hey Rune, Would you PTAL at this metrics patch?
3 years, 10 months ago (2017-02-09 13:11:10 UTC) #7
rune
lgtm modulo bikeshedding. You need someone else to stamp tools/ perhaps? https://codereview.chromium.org/2687023003/diff/1/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp File third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp (right): ...
3 years, 10 months ago (2017-02-10 10:33:52 UTC) #8
Charlie Harrison
Thanks! +jwd can you review histograms.xml please? https://codereview.chromium.org/2687023003/diff/1/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp File third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp (right): https://codereview.chromium.org/2687023003/diff/1/third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp#newcode28 third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp:28: void CSSLazyParsingState::finishStrictParsing() ...
3 years, 10 months ago (2017-02-10 12:49:42 UTC) #10
jwd
Histograms LGTM FYI, if you're not aware, the histogram sum reported in the aggregated data ...
3 years, 10 months ago (2017-02-14 15:57:05 UTC) #11
Charlie Harrison
Thanks, yeah I'll certainly move to suffixes in the future if we add more.
3 years, 10 months ago (2017-02-14 16:04:21 UTC) #12
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/2687023003/20001
3 years, 10 months ago (2017-02-14 16:05:08 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 17:41:12 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/146eafbb2d1135f23696e2acca9a...

Powered by Google App Engine
This is Rietveld 408576698