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

Issue 1973073005: Log histograms for preloads and preload misses (Closed)

Created:
4 years, 7 months ago by Charlie Harrison
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log histograms for preloads and preload misses This patch logs preloads and preload misses when the ResourceFetcher clears its preloads. It also removes the debug preload macros which seem unused, given that their implementation doesn't even compile. BUG=603274 Committed: https://crrev.com/37853844afa06038c94e5ce6d8b75d1db9faf2a6 Cr-Commit-Position: refs/heads/master@{#394234}

Patch Set 1 #

Patch Set 2 : Fix histograms #

Total comments: 1

Patch Set 3 : link preloads are turned into raw resources #

Total comments: 1

Patch Set 4 : kouhei@ review + updated histograms per yoav@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -42 lines) Patch
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 chunks +93 lines, -41 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Charlie Harrison
kouhei@, can you please review this? I think these metrics are critical to evaluating the ...
4 years, 7 months ago (2016-05-13 19:57:14 UTC) #2
kouhei (in TOK)
lgtm https://codereview.chromium.org/1973073005/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1973073005/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode1145 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1145: cssPreloadMisses.count(stylesheetMisses); Please use consistent variable names here. Either ...
4 years, 7 months ago (2016-05-16 14:42:30 UTC) #3
Yoav Weiss
On 2016/05/16 14:42:30, kouhei wrote: > lgtm > > https://codereview.chromium.org/1973073005/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp > File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): > ...
4 years, 7 months ago (2016-05-16 15:07:42 UTC) #4
Charlie Harrison
On 2016/05/16 15:07:42, Yoav Weiss wrote: > On 2016/05/16 14:42:30, kouhei wrote: > > lgtm ...
4 years, 7 months ago (2016-05-16 15:18:21 UTC) #5
Charlie Harrison
Thanks all. asvitkine@ PTAL. Note that I'm using someone elses suffix list.
4 years, 7 months ago (2016-05-16 19:15:07 UTC) #7
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-05-17 17:28:58 UTC) #8
Charlie Harrison
Thanks! yoav@, I'll land this now but let's circle back if we end up getting ...
4 years, 7 months ago (2016-05-17 17:33:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973073005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973073005/60001
4 years, 7 months ago (2016-05-17 17:34:39 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-17 21:25:21 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/37853844afa06038c94e5ce6d8b75d1db9faf2a6 Cr-Commit-Position: refs/heads/master@{#394234}
4 years, 7 months ago (2016-05-17 21:27:17 UTC) #15
Yoav Weiss
On 2016/05/17 17:33:49, csharrison wrote: > Thanks! > yoav@, I'll land this now but let's ...
4 years, 7 months ago (2016-05-18 07:55:42 UTC) #16
Charlie Harrison
On 2016/05/18 07:55:42, Yoav Weiss wrote: > On 2016/05/17 17:33:49, csharrison wrote: > > Thanks! ...
4 years, 7 months ago (2016-05-18 14:00:20 UTC) #17
Charlie Harrison
4 years, 7 months ago (2016-05-18 15:28:32 UTC) #18
Message was sent while issue was closed.
On 2016/05/18 14:00:20, csharrison wrote:
> On 2016/05/18 07:55:42, Yoav Weiss wrote:
> > On 2016/05/17 17:33:49, csharrison wrote:
> > > Thanks!
> > > yoav@, I'll land this now but let's circle back if we end up getting bad
> data
> > > for link rel preloads. Maybe with weak memory cache we can move this logic
> > > there?
> > 
> > A weak memcache absed counting would make much more sense (and the skew for
> link
> > preload resources is not limited to RawResource: `as` initiates these
requests
> > with their destination ResourceType
> 
> What if we just put this logging code in Resource's pre-finalizer? That could
> work today I think. I'll test it out.

Of course, we'd lack the aggregation to do a CustomCountHistogram, but maybe
that resolution isn't needed. WDYT?

Powered by Google App Engine
This is Rietveld 408576698