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

Issue 1140443002: Modify IPC call to properly record the PLT histograms for LoFi. (Closed)

Created:
5 years, 7 months ago by tbansal1
Modified:
5 years, 7 months ago
CC:
bengr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify IPC call to Data Reduction Proxy to properly record the PLT histograms for LoFi. This CL adds 2 more boolean parameters to an existing IPC call that tells us whether the page load happened with LoFi on with bad network conditions or LoFi off with bad network conditions. The methods in the data reduction proxy code currently return false and would be fixed in the forthcoming CL. Auto LoFi status keeps changing (on a page load basis) depending on the network conditions (e.g., enabled only when network quality is bad). Just because session is in a field trial does not guarantee that LoFi would ever be used. Using a synthetic trial or only using the field trial will give very noisy data in this case. This is a temporary CL for LoFi Android experiment. Eventually, we want to read the LoFi status using the headers of the response instead of reading the current LoFi status (which might be a bit stale) but that requires putting custom HTTP headers in the response message from data saver proxy. BUG=485633 Committed: https://crrev.com/9b2675127847bbdecbbd630ee4c13fec33e67f4b Cr-Commit-Position: refs/heads/master@{#329776}

Patch Set 1 #

Patch Set 2 : Minor fixes to comments. #

Total comments: 4

Patch Set 3 : Made LoFi status an enum #

Patch Set 4 : Change the variable names to be more intuitive. #

Total comments: 10

Patch Set 5 : Addressed comments. #

Total comments: 4

Patch Set 6 : Addressed Alexei's comments #

Total comments: 2

Patch Set 7 : Removed enum keyword #

Patch Set 8 : Fixed minor typo in test #

Messages

Total messages: 38 (9 generated)
tbansal1
ptal. thanks.
5 years, 7 months ago (2015-05-11 16:23:23 UTC) #2
jeremyim
On 2015/05/11 16:23:23, tbansal1 wrote: > ptal. thanks. You may want to tweak the CL ...
5 years, 7 months ago (2015-05-11 17:30:11 UTC) #3
jeremyim
https://codereview.chromium.org/1140443002/diff/20001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1140443002/diff/20001/chrome/renderer/page_load_histograms.cc#newcode830 chrome/renderer/page_load_histograms.cc:830: DCHECK(!(lofi_enabled && lofi_control)); Shouldn't this just be an enum ...
5 years, 7 months ago (2015-05-11 17:30:21 UTC) #4
tbansal1
thanks for the comments. ptal https://codereview.chromium.org/1140443002/diff/20001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1140443002/diff/20001/chrome/renderer/page_load_histograms.cc#newcode830 chrome/renderer/page_load_histograms.cc:830: DCHECK(!(lofi_enabled && lofi_control)); On ...
5 years, 7 months ago (2015-05-11 21:22:53 UTC) #5
jeremyim
Is there anything preventing the use of headers right now? If possible, it would be ...
5 years, 7 months ago (2015-05-12 03:36:50 UTC) #6
tbansal1
On 2015/05/12 03:36:50, jeremyim wrote: > Is there anything preventing the use of headers right ...
5 years, 7 months ago (2015-05-12 05:04:12 UTC) #7
jeremyim
On 2015/05/12 05:04:12, tbansal1 wrote: > On 2015/05/12 03:36:50, jeremyim wrote: > > Is there ...
5 years, 7 months ago (2015-05-12 18:54:30 UTC) #8
tbansal1
On 2015/05/12 18:54:30, jeremyim wrote: > On 2015/05/12 05:04:12, tbansal1 wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 19:41:51 UTC) #9
tbansal1
asvitkine@chromium.org: Please review changes in histograms.xml tonyg: page_load_histograms.cc
5 years, 7 months ago (2015-05-12 19:45:27 UTC) #13
Tom Sepez
Messages themselves LGTM after fixing nits. https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h File components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h (right): https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h#newcode20 components/data_reduction_proxy/content/common/data_reduction_proxy_messages.h:20: data_reduction_proxy:: nit: Don't ...
5 years, 7 months ago (2015-05-12 19:46:20 UTC) #14
jeremyim
https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc (right): https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc#newcode49 components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc:49: AutoLoFiStatus* lofi_response) { nit: lofi_status https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h File components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h (right): ...
5 years, 7 months ago (2015-05-12 19:46:21 UTC) #15
Alexei Svitkine (slow)
What's the reason for client-splitting these histograms as opposed to launching LoFi as a field ...
5 years, 7 months ago (2015-05-12 20:46:54 UTC) #16
tbansal1
On 2015/05/12 20:46:54, Alexei Svitkine wrote: > What's the reason for client-splitting these histograms as ...
5 years, 7 months ago (2015-05-12 20:55:04 UTC) #17
Alexei Svitkine (slow)
That makes sense, might be worth calling out specifically in the CL description (you do ...
5 years, 7 months ago (2015-05-12 21:51:13 UTC) #18
tbansal1
On 2015/05/12 21:51:13, Alexei Svitkine wrote: > That makes sense, might be worth calling out ...
5 years, 7 months ago (2015-05-12 21:54:19 UTC) #19
Alexei Svitkine (slow)
lgtm % nits https://codereview.chromium.org/1140443002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1140443002/diff/80001/tools/metrics/histograms/histograms.xml#newcode66053 tools/metrics/histograms/histograms.xml:66053: + <suffix name="HTTPS_DataReductionProxy_AutoLoFiOn" Nit: Order the ...
5 years, 7 months ago (2015-05-12 21:55:09 UTC) #20
tbansal1
ptal https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc (right): https://codereview.chromium.org/1140443002/diff/60001/components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc#newcode49 components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.cc:49: AutoLoFiStatus* lofi_response) { On 2015/05/12 19:46:21, jeremyim wrote: ...
5 years, 7 months ago (2015-05-12 22:12:42 UTC) #21
jeremyim
data_reduction_proxy* lgtm
5 years, 7 months ago (2015-05-13 00:16:53 UTC) #22
tbansal1
tonyg@: ping for chrome/renderer/page_load_histograms.cc thanks!
5 years, 7 months ago (2015-05-13 20:04:01 UTC) #23
tbansal1
tonyg@: ping for chrome/renderer/page_load_histograms.cc thanks!
5 years, 7 months ago (2015-05-13 20:04:01 UTC) #24
tonyg
On 2015/05/13 20:04:01, tbansal1 wrote: > tonyg@: ping for chrome/renderer/page_load_histograms.cc > thanks! rubber stamp lgtm
5 years, 7 months ago (2015-05-13 22:13:51 UTC) #25
tbansal1
jeremyim@: Mind taking a quick look at chrome/renderer/page_load_histograms.cc? thanks!
5 years, 7 months ago (2015-05-13 22:56:54 UTC) #26
jeremyim
page_load_histograms lgtm % nit https://codereview.chromium.org/1140443002/diff/100001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1140443002/diff/100001/chrome/renderer/page_load_histograms.cc#newcode826 chrome/renderer/page_load_histograms.cc:826: enum data_reduction_proxy::AutoLoFiStatus auto_lofi_status = Remove ...
5 years, 7 months ago (2015-05-13 23:12:09 UTC) #27
tbansal1
https://codereview.chromium.org/1140443002/diff/100001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1140443002/diff/100001/chrome/renderer/page_load_histograms.cc#newcode826 chrome/renderer/page_load_histograms.cc:826: enum data_reduction_proxy::AutoLoFiStatus auto_lofi_status = On 2015/05/13 23:12:08, jeremyim wrote: ...
5 years, 7 months ago (2015-05-13 23:51:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140443002/120001
5 years, 7 months ago (2015-05-13 23:53:46 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/37461) linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 7 months ago (2015-05-14 00:10:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140443002/140001
5 years, 7 months ago (2015-05-14 00:28:41 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-14 01:44:21 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 01:44:59 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9b2675127847bbdecbbd630ee4c13fec33e67f4b
Cr-Commit-Position: refs/heads/master@{#329776}

Powered by Google App Engine
This is Rietveld 408576698