|
|
DescriptionRecord DRP histogram on how long back savings were cleared
Record Data Reduction Proxy (DRP) histogram on how long back savings were
automatically cleared because the system clock moved back. If this happens
too frequently, then we will need to add a mechanism to get around this.
This would also help in debugging 0% savings feedback reports.
BUG=658354
Committed: https://crrev.com/2c3ecceea409b42c873949bac0aa1acaa80451e3
Cr-Commit-Position: refs/heads/master@{#438011}
Patch Set 1 : ps #
Total comments: 6
Patch Set 2 : asvitkine comments #
Total comments: 2
Patch Set 3 : asvitkine comments #Patch Set 4 : Rebased #Messages
Total messages: 42 (26 generated)
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
The CQ bit was checked by tbansal@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Record DRP prefs on when savings were cleared BUG= ========== to ========== Record DRP histogram on how long back savings were cleared Record Data Reduction Proxy (DRP) histogram on how long back savings were automatically cleared because the system clock moved back. If this happens too frequently, then we will need to add a mechanism to get around this. This would also help in debugging 0% savings feedback reports. BUG=658354 ==========
tbansal@chromium.org changed reviewers: + ryansturm@chromium.org
ryansturm: ptal. Thanks.
https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:285: "DataReductionProxy.DaysSinceSavingsCleared.NegativeSystemClock", What do you expect to get out of this histogram to look like? It seems like it will record 0 when the clock resets and then for the users that it has reset it will record some number of days. Seems like you want to know how often a person's data gets reset (which is just the number of 0's). Is this part of the CL just for per user diagnostics? I don't see how it will be useful except for per user diagnostic unless you are looking to find a class of users that consistently reset their time.
https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:285: "DataReductionProxy.DaysSinceSavingsCleared.NegativeSystemClock", On 2016/12/06 18:19:33, Ryan Sturm wrote: > What do you expect to get out of this histogram to look like? It seems like it > will record 0 when the clock resets and then for the users that it has reset it > will record some number of days. > > Seems like you want to know how often a person's data gets reset (which is just > the number of 0's). > > Is this part of the CL just for per user diagnostics? I don't see how it will be > useful except for per user diagnostic unless you are looking to find a class of > users that consistently reset their time. Two uses: (1) Record how frequently the savings are reset. This can be found by just counting the number of samples in the 0 bucket. (2) When there is a user feedback report with 0% savings, we can look at how long back the savings were cleared because of system clock moving back.
On 2016/12/06 18:29:12, tbansal1 wrote: > https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... > File > components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc > (right): > > https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... > components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:285: > "DataReductionProxy.DaysSinceSavingsCleared.NegativeSystemClock", > On 2016/12/06 18:19:33, Ryan Sturm wrote: > > What do you expect to get out of this histogram to look like? It seems like it > > will record 0 when the clock resets and then for the users that it has reset > it > > will record some number of days. > > > > Seems like you want to know how often a person's data gets reset (which is > just > > the number of 0's). > > > > Is this part of the CL just for per user diagnostics? I don't see how it will > be > > useful except for per user diagnostic unless you are looking to find a class > of > > users that consistently reset their time. > > Two uses: > (1) Record how frequently the savings are reset. This can be found by just > counting the number of samples in the 0 bucket. sgtm. > (2) When there is a user feedback report with 0% savings, we can look at how > long back the savings were cleared because of system clock moving back. It's weird, but that's what I thought you were using it for. lgtm.
tbansal@chromium.org changed reviewers: + asvitkine@chromium.org
asvitkine: ptal at histograms.xml. Thanks.
Patchset #2 (id:60001) has been deleted
https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:940: 0, 0, 365, 50); Seems strange that you're recording this in a completely different place than the other samples. I suggest at least making a helper function for it, so that the macro, name and params don't have to be duplicated and calling it from both places. https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:289: 0, 365, 50); Min value should be >= 1, see comment in histogram_macros.h.
Patchset #2 (id:80001) has been deleted
Patchset #2 (id:100001) has been deleted
asvitkine: ptal. https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:940: 0, 0, 365, 50); On 2016/12/07 16:47:27, Alexei Svitkine (slow) wrote: > Seems strange that you're recording this in a completely different place than > the other samples. > > I suggest at least making a helper function for it, so that the macro, name and > params don't have to be duplicated and calling it from both places. Using two different histograms now since they were essentially recording different things. https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2546273002/diff/40001/components/data_reducti... components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:289: 0, 365, 50); On 2016/12/07 16:47:27, Alexei Svitkine (slow) wrote: > Min value should be >= 1, see comment in histogram_macros.h. Done.
This makes more sense now. Thanks for the changes.
https://codereview.chromium.org/2546273002/diff/120001/components/data_reduct... File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/2546273002/diff/120001/components/data_reduct... components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:938: "DataReductionProxy.CountSavingsCleared.NegativeSystemClock", 1, 2); I think logging this in isolation is not very helpful. Suppose you have a value like "19383". Is this a lot? Not so much? It doesn't tell you without knowing something else - like "out of how many users?". It would be better to record a boolean histogram here for both false and true cases so you can tell the ratio in the population.
https://codereview.chromium.org/2546273002/diff/120001/components/data_reduct... File components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc (right): https://codereview.chromium.org/2546273002/diff/120001/components/data_reduct... components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc:938: "DataReductionProxy.CountSavingsCleared.NegativeSystemClock", 1, 2); On 2016/12/08 21:24:24, Alexei Svitkine (slow) wrote: > I think logging this in isolation is not very helpful. > > Suppose you have a value like "19383". Is this a lot? Not so much? It doesn't > tell you without knowing something else - like "out of how many users?". It > would be better to record a boolean histogram here for both false and true cases > so you can tell the ratio in the population. There are other UMA histograms that record that. The denominator here simply would be # of Chrome sessions, or # of users (depending on the use case) that have DRP enabled. I can record this as a boolean but then we are just sending duplicate data.
The best practice is to have the data all in one histogram. On Thu, Dec 8, 2016 at 4:47 PM, <tbansal@chromium.org> wrote: > > https://codereview.chromium.org/2546273002/diff/120001/ > components/data_reduction_proxy/core/browser/data_ > reduction_proxy_compression_stats.cc > File > components/data_reduction_proxy/core/browser/data_ > reduction_proxy_compression_stats.cc > (right): > > https://codereview.chromium.org/2546273002/diff/120001/ > components/data_reduction_proxy/core/browser/data_ > reduction_proxy_compression_stats.cc#newcode938 > components/data_reduction_proxy/core/browser/data_ > reduction_proxy_compression_stats.cc:938: > "DataReductionProxy.CountSavingsCleared.NegativeSystemClock", 1, 2); > On 2016/12/08 21:24:24, Alexei Svitkine (slow) wrote: > > I think logging this in isolation is not very helpful. > > > > Suppose you have a value like "19383". Is this a lot? Not so much? It > doesn't > > tell you without knowing something else - like "out of how many > users?". It > > would be better to record a boolean histogram here for both false and > true cases > > so you can tell the ratio in the population. > > There are other UMA histograms that record that. The denominator here > simply would be # of Chrome sessions, or # of users (depending on the > use case) that have DRP enabled. I can record this as a boolean but then > we are just sending duplicate data. > > https://codereview.chromium.org/2546273002/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Patchset #3 (id:140001) has been deleted
Patchset #4 (id:180001) has been deleted
Patchset #3 (id:160001) has been deleted
asvitkine: ptal. Thanks.
lgtm
The CQ bit was checked by tbansal@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from ryansturm@chromium.org, asvitkine@chromium.org Link to the patchset: https://codereview.chromium.org/2546273002/#ps220001 (title: "Rebased")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1481584794369190, "parent_rev": "9062f16d6e087d18bd958b1a7ac7b2b839ff08bb", "commit_rev": "6a60deb4244bcc45c04552745bdaa91c16a825b3"}
Message was sent while issue was closed.
Description was changed from ========== Record DRP histogram on how long back savings were cleared Record Data Reduction Proxy (DRP) histogram on how long back savings were automatically cleared because the system clock moved back. If this happens too frequently, then we will need to add a mechanism to get around this. This would also help in debugging 0% savings feedback reports. BUG=658354 ========== to ========== Record DRP histogram on how long back savings were cleared Record Data Reduction Proxy (DRP) histogram on how long back savings were automatically cleared because the system clock moved back. If this happens too frequently, then we will need to add a mechanism to get around this. This would also help in debugging 0% savings feedback reports. BUG=658354 Review-Url: https://codereview.chromium.org/2546273002 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:220001)
Message was sent while issue was closed.
Description was changed from ========== Record DRP histogram on how long back savings were cleared Record Data Reduction Proxy (DRP) histogram on how long back savings were automatically cleared because the system clock moved back. If this happens too frequently, then we will need to add a mechanism to get around this. This would also help in debugging 0% savings feedback reports. BUG=658354 Review-Url: https://codereview.chromium.org/2546273002 ========== to ========== Record DRP histogram on how long back savings were cleared Record Data Reduction Proxy (DRP) histogram on how long back savings were automatically cleared because the system clock moved back. If this happens too frequently, then we will need to add a mechanism to get around this. This would also help in debugging 0% savings feedback reports. BUG=658354 Committed: https://crrev.com/2c3ecceea409b42c873949bac0aa1acaa80451e3 Cr-Commit-Position: refs/heads/master@{#438011} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/2c3ecceea409b42c873949bac0aa1acaa80451e3 Cr-Commit-Position: refs/heads/master@{#438011} |