Reviewers: kinuko
CL:
https://codereview.chromium.org/2218583002/Message:
kinuko@, do you have time to take a look at this?
My thinking is that we first get a sense of cache ratios for page loads in
general (I chose parse end because lots of our efforts are targeting parsing).
Then, in a followup change, we can start separating out PLT metrics based on the
warmth ratio. I'm hopeful that this will allow Caminito / NeverIdle to zero in
on the loads they are hoping to affect.
Description:
[page_load_metrics] Log cache warmth ratios at parse stop
This patch instruments ChromeResourceDispatcherHostDelegate to forward
request information upon request completion to page_load_metrics. This
data is then associated with the current committed navigation, and used
to generate histograms of % cache warmth in terms of total requests and
total bytes loaded.
Note: This CL also coalesces short events posted to the UI thread to avoid
spamming the task queue on request complete.
BUG=634120
Base URL:
https://chromium.googlesource.com/chromium/src.git@masterAffected files (+132, -25 lines):
M chrome/browser/page_load_metrics/metrics_web_contents_observer.h
M chrome/browser/page_load_metrics/metrics_web_contents_observer.cc
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc
M chrome/browser/page_load_metrics/page_load_metrics_observer.h
M chrome/browser/page_load_metrics/page_load_metrics_observer.cc
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc