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

Issue 784253002: Measure network error rates with and without data reduction proxy (Closed)

Created:
6 years ago by sclittle
Modified:
6 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Measure network error rates with and without data reduction proxy Adds new histograms that measure the network errors that requests are completing with when using the data reduction proxy, and also measure the network error rates for all HTTP requests for comparison. Single out main frame resource loads because most net errors that would occur due the network being unusable with the data reduction proxy would occur on main frame requests. BUG=439589 Committed: https://crrev.com/3c16159e8509dc95e72758296c66531b202eee6d Cr-Commit-Position: refs/heads/master@{#308396}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebased on master #

Total comments: 4

Patch Set 4 : Switched to using LOAD_MAIN_FRAME load flag #

Total comments: 7

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -8 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 2 chunks +31 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 2 3 6 chunks +95 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (18 generated)
sclittle
bengr: all mef: chrome_network_delegate.cc jar: histograms.xml Thanks in advance!
6 years ago (2014-12-09 03:38:05 UTC) #2
bengr
https://codereview.chromium.org/784253002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/784253002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode574 chrome/browser/net/chrome_network_delegate.cc:574: data_reduction_proxy_usage_stats_->OnUrlRequestCompleted( After megjablon@'s CL lands, this will be in ...
6 years ago (2014-12-09 23:44:14 UTC) #3
sclittle
https://codereview.chromium.org/784253002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/784253002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode574 chrome/browser/net/chrome_network_delegate.cc:574: data_reduction_proxy_usage_stats_->OnUrlRequestCompleted( On 2014/12/09 23:44:13, bengr wrote: > After megjablon@'s ...
6 years ago (2014-12-10 00:05:04 UTC) #4
jar (doing other things)
+cc asvitkine for histograms.xml
6 years ago (2014-12-10 02:12:33 UTC) #6
sclittle
mmenke: profile_impl_io_data.cc I've rebased this on megjablon@'s refactor, and I've injected the IsMainFrameResourceRequest check as ...
6 years ago (2014-12-11 23:21:06 UTC) #22
mmenke
https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode135 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:135: is_main_frame_resource_callback_.Run(request); We have a load flag for this (Admittedly, ...
6 years ago (2014-12-12 15:35:48 UTC) #23
Alexei Svitkine (slow)
lgtm with a nit https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h (right): https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h#newcode62 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h:62: bool(const net::URLRequest*)>& is_main_frame_resource_callback) { Nit: ...
6 years ago (2014-12-12 20:25:48 UTC) #24
sclittle
https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/784253002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode135 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:135: is_main_frame_resource_callback_.Run(request); On 2014/12/12 15:35:48, mmenke wrote: > We have ...
6 years ago (2014-12-12 20:56:10 UTC) #25
mmenke
https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc#newcode164 chrome/browser/net/chrome_network_delegate.cc:164: "Net.HttpRequestCompletionErrorCodes.MainFrame", Not needed. See Net.ErrorCodesForMainFrame3 and Net.ErrorCodesForSubresources2
6 years ago (2014-12-12 21:09:30 UTC) #26
sclittle
https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc#newcode164 chrome/browser/net/chrome_network_delegate.cc:164: "Net.HttpRequestCompletionErrorCodes.MainFrame", On 2014/12/12 21:09:30, mmenke wrote: > Not needed. ...
6 years ago (2014-12-12 22:10:20 UTC) #27
bengr
lgtm with nits https://codereview.chromium.org/784253002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/784253002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode126 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:126: if (data_reduction_proxy_params_->WasDataReductionProxyUsed(request, #include "components/data_reduction_proxy/common/core/data_reduction_proxy_params.h" https://codereview.chromium.org/784253002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc File ...
6 years ago (2014-12-13 00:52:00 UTC) #28
sclittle
https://codereview.chromium.org/784253002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/784253002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode126 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:126: if (data_reduction_proxy_params_->WasDataReductionProxyUsed(request, On 2014/12/13 00:51:59, bengr wrote: > #include ...
6 years ago (2014-12-13 01:07:42 UTC) #29
mmenke
LGTM https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc#newcode164 chrome/browser/net/chrome_network_delegate.cc:164: "Net.HttpRequestCompletionErrorCodes.MainFrame", On 2014/12/12 22:10:20, sclittle wrote: > On ...
6 years ago (2014-12-15 16:55:44 UTC) #30
mmenke
On 2014/12/15 16:55:44, mmenke wrote: > LGTM > > https://codereview.chromium.org/784253002/diff/80001/chrome/browser/net/chrome_network_delegate.cc > File chrome/browser/net/chrome_network_delegate.cc (right): > ...
6 years ago (2014-12-15 16:58:30 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784253002/100001
6 years ago (2014-12-15 18:43:25 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:100001)
6 years ago (2014-12-15 19:53:28 UTC) #34
commit-bot: I haz the power
6 years ago (2014-12-15 19:54:12 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3c16159e8509dc95e72758296c66531b202eee6d
Cr-Commit-Position: refs/heads/master@{#308396}

Powered by Google App Engine
This is Rietveld 408576698