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

Issue 1127893002: Add DataReductionProxyExperimentsStats and UMA for measuring potentially non-compressed bytes. (Closed)

Created:
5 years, 7 months ago by jeremyim
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DataReductionProxyExperimentsStats and UMA for measuring potentially non-compressed bytes. If no valid Data Reduction Proxy configuration is available to the client, then the client does not get the benefit of the Data Reduction Proxy during the period when a configuration is being retrieved. This CL sets up a configurable simulation where all requests will continue to go through the Data Reduction Proxy, but if the request is initiated during a period when the client would request a configuration from the service, we will record the reduction statistics to determine the overall effect on data compression. BUG=484864 Committed: https://crrev.com/0323138fb70b031af8b60d7bc07152c3e2ddb7b8 Cr-Commit-Position: refs/heads/master@{#330133}

Patch Set 1 #

Total comments: 22

Patch Set 2 : sclittle CR comments + rebase #

Total comments: 18

Patch Set 3 : sclittle CR comments #

Patch Set 4 : Create new unit test class for testing DataReductionProxyConfigRetrievalParams #

Total comments: 12

Patch Set 5 : sclittle CR comments #

Patch Set 6 : Fix windows unit test failure. #

Total comments: 8

Patch Set 7 : asvitkine CR comments #

Total comments: 2

Patch Set 8 : Update histogram comment. #

Total comments: 2

Patch Set 9 : address histogram comment nits #

Patch Set 10 : Rebase to master, fix cronet compile. #

Patch Set 11 : Fix test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1148 lines, -18 lines) Patch
M android_webview/browser/aw_browser_context.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_data_reduction_proxy.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.h View 1 2 3 4 5 6 1 chunk +154 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc View 1 2 3 4 5 6 7 1 chunk +270 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc View 1 2 3 4 5 6 1 chunk +228 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc View 1 2 3 4 5 6 1 chunk +163 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +13 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 5 chunks +17 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 3 chunks +5 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 4 chunks +9 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc View 4 chunks +12 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +25 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
jeremyim
5 years, 7 months ago (2015-05-05 22:01:00 UTC) #2
sclittle
https://codereview.chromium.org/1127893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc (right): https://codereview.chromium.org/1127893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc#newcode60 components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc:60: std::string config_always_stale_value = variations::GetVariationParamValue( Instead of having multiple (e.g. ...
5 years, 7 months ago (2015-05-06 01:59:22 UTC) #3
jeremyim
https://codereview.chromium.org/1127893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc (right): https://codereview.chromium.org/1127893002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc#newcode60 components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc:60: std::string config_always_stale_value = variations::GetVariationParamValue( On 2015/05/06 01:59:21, sclittle wrote: ...
5 years, 7 months ago (2015-05-08 22:25:31 UTC) #4
sclittle
https://codereview.chromium.org/1127893002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc (right): https://codereview.chromium.org/1127893002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc#newcode112 components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc:112: if (now > config_expiration) { Could some of this ...
5 years, 7 months ago (2015-05-12 19:32:25 UTC) #5
jeremyim
https://codereview.chromium.org/1127893002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc (right): https://codereview.chromium.org/1127893002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc#newcode112 components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.cc:112: if (now > config_expiration) { On 2015/05/12 19:32:25, sclittle ...
5 years, 7 months ago (2015-05-12 20:38:29 UTC) #6
sclittle
https://codereview.chromium.org/1127893002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc (right): https://codereview.chromium.org/1127893002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc#newcode52 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc:52: !base::StringToInt64(variation_value, &variation_numeric)) nit: add curlies for these if statements ...
5 years, 7 months ago (2015-05-14 00:23:39 UTC) #7
jeremyim
https://codereview.chromium.org/1127893002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc (right): https://codereview.chromium.org/1127893002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc#newcode52 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc:52: !base::StringToInt64(variation_value, &variation_numeric)) On 2015/05/14 00:23:39, sclittle wrote: > nit: ...
5 years, 7 months ago (2015-05-14 03:32:20 UTC) #8
jeremyim
PTAL. Thanks! asvitkine => histograms.xml sgurun => aw_browser_context.cc
5 years, 7 months ago (2015-05-14 15:31:25 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1127893002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc (right): https://codereview.chromium.org/1127893002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc#newcode38 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc:38: base::HistogramBase* GetHistogramWithSuffix(const char* histogram, int suffix) { Nit: Add ...
5 years, 7 months ago (2015-05-14 17:00:18 UTC) #11
jeremyim
https://codereview.chromium.org/1127893002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc (right): https://codereview.chromium.org/1127893002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc#newcode38 components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc:38: base::HistogramBase* GetHistogramWithSuffix(const char* histogram, int suffix) { On 2015/05/14 ...
5 years, 7 months ago (2015-05-14 17:28:02 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/1127893002/diff/100002/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127893002/diff/100002/tools/metrics/histograms/histograms.xml#newcode4255 tools/metrics/histograms/histograms.xml:4255: + configuration fetch is taking place. Histograms can't log ...
5 years, 7 months ago (2015-05-14 18:15:13 UTC) #13
jeremyim
https://codereview.chromium.org/1127893002/diff/100002/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127893002/diff/100002/tools/metrics/histograms/histograms.xml#newcode4255 tools/metrics/histograms/histograms.xml:4255: + configuration fetch is taking place. On 2015/05/14 18:15:13, ...
5 years, 7 months ago (2015-05-14 18:32:27 UTC) #15
sclittle
LGTM https://codereview.chromium.org/1127893002/diff/150001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127893002/diff/150001/tools/metrics/histograms/histograms.xml#newcode4254 tools/metrics/histograms/histograms.xml:4254: + place. Only positive values are logged, so ...
5 years, 7 months ago (2015-05-14 18:33:47 UTC) #16
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1127893002/diff/150001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127893002/diff/150001/tools/metrics/histograms/histograms.xml#newcode4255 tools/metrics/histograms/histograms.xml:4255: + not specified or exceeds the content length, ...
5 years, 7 months ago (2015-05-14 18:34:50 UTC) #17
jeremyim
mmenke: Please review cronet/* Thanks!
5 years, 7 months ago (2015-05-14 20:14:02 UTC) #19
sgurun-gerrit only
On 2015/05/14 20:14:02, jeremyim wrote: > mmenke: Please review cronet/* > > Thanks! are the ...
5 years, 7 months ago (2015-05-14 23:18:21 UTC) #20
jeremyim
On 2015/05/14 23:18:21, sgurun wrote: > On 2015/05/14 20:14:02, jeremyim wrote: > > mmenke: Please ...
5 years, 7 months ago (2015-05-15 02:31:47 UTC) #21
mmenke
cronet/ LGTM
5 years, 7 months ago (2015-05-15 02:33:34 UTC) #22
sgurun-gerrit only
On 2015/05/15 02:33:34, mmenke wrote: > cronet/ LGTM win failing...
5 years, 7 months ago (2015-05-15 03:28:05 UTC) #23
jeremyim
On 2015/05/15 03:28:05, sgurun wrote: > On 2015/05/15 02:33:34, mmenke wrote: > > cronet/ LGTM ...
5 years, 7 months ago (2015-05-15 04:25:16 UTC) #24
sgurun-gerrit only
On 2015/05/15 04:25:16, jeremyim wrote: > On 2015/05/15 03:28:05, sgurun wrote: > > On 2015/05/15 ...
5 years, 7 months ago (2015-05-15 16:52:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127893002/200001
5 years, 7 months ago (2015-05-15 18:06:39 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-15 18:13:38 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 18:15:09 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/0323138fb70b031af8b60d7bc07152c3e2ddb7b8
Cr-Commit-Position: refs/heads/master@{#330133}

Powered by Google App Engine
This is Rietveld 408576698