diff options
author | jkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 14:59:01 +0000 |
---|---|---|
committer | jkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 14:59:01 +0000 |
commit | 3adcb41365be2ef2742678486cc3e7170b3f9e6b (patch) | |
tree | 0ddbe1836b5aed29b9bbf2027885d8b3499254ec /chrome/browser/prerender/prerender_histograms.h | |
parent | 7d5289ea56fd78ba53cde604f3e12784f7952626 (diff) | |
download | chromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.zip chromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.tar.gz chromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.tar.bz2 |
Reports UMA data for bytes fetched over the network for used and
unused prerenders. It also reports on the total number of bytes
fetched for that profile since the last prerender report.
This gives us insight into the balance of used vs wasted prerenders.
Understanding the ratio of wasted prerender bytes to total bytes gives
us a better understanding of whether we need an option to disable
prerender on mobile networks.
BUG=334602
Review URL: https://codereview.chromium.org/160513002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender/prerender_histograms.h')
-rw-r--r-- | chrome/browser/prerender/prerender_histograms.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/prerender/prerender_histograms.h b/chrome/browser/prerender/prerender_histograms.h index 0a9b8ee..fccd75f2 100644 --- a/chrome/browser/prerender/prerender_histograms.h +++ b/chrome/browser/prerender/prerender_histograms.h @@ -109,6 +109,13 @@ class PrerenderHistograms { uint8 experiment_id, bool visited_before) const; + // Record the bytes in the prerender, whether it was used or not, and the + // total number of bytes fetched for this profile since the last call to + // RecordBytes. + void RecordNetworkBytes(bool used, + int64 prerender_bytes, + int64 profile_bytes); + private: base::TimeTicks GetCurrentTimeTicks() const; |