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

Issue 2810053004: [Remote suggestions] Report time distribution of triggers (Closed)

Created:
3 years, 8 months ago by jkrcal
Modified:
3 years, 8 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, asvitkine+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Remote suggestions] Report time distribution of triggers When changing scheduling intervals for soft background fetches, we had to guess blindly what the impact on traffic this will have. This CL records the distribution of: - when first trigger comes (not necessarily successful), and - when the (first) successful trigger comes. The former helps us to evaluate impact of scheduling changes. The latter helps us to understand what are the real fetching intervals in the wild. BUG=710828 Review-Url: https://codereview.chromium.org/2810053004 Cr-Commit-Position: refs/heads/master@{#464595} Committed: https://chromium.googlesource.com/chromium/src/+/51a10acb782ef180630115d21190b7c70cb44944

Patch Set 1 #

Total comments: 10

Patch Set 2 : Marc's comments #

Total comments: 4

Patch Set 3 : Marc's comments #2 #

Patch Set 4 : Minor polish #

Total comments: 10

Patch Set 5 : Ilya's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -7 lines) Patch
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc View 1 2 3 4 6 chunks +113 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
jkrcal
Marc, could you PTAL? Ilya, could you PTAL at histograms.xml?
3 years, 8 months ago (2017-04-12 12:34:11 UTC) #4
Marc Treib
https://codereview.chromium.org/2810053004/diff/1/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/1/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode150 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:150: const base::TimeDelta& time_until_first_failed_trigger) { s/time_until_first_failed_trigger/time_until_first_trigger/ (This records any, not ...
3 years, 8 months ago (2017-04-12 12:48:31 UTC) #5
jkrcal
Thanks, Marc! PTAL again. https://codereview.chromium.org/2810053004/diff/1/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/1/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode150 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:150: const base::TimeDelta& time_until_first_failed_trigger) { On ...
3 years, 8 months ago (2017-04-12 13:26:44 UTC) #6
Marc Treib
lgtm Thanks! https://codereview.chromium.org/2810053004/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode148 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:148: void ReportTimeUntilFirstTrigger(UserClassifier::UserClass user_class, optional: s/FirstTrigger/FirstSoftTrigger/ ? https://codereview.chromium.org/2810053004/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode176 ...
3 years, 8 months ago (2017-04-12 13:43:30 UTC) #7
jkrcal
Thanks, done! https://codereview.chromium.org/2810053004/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode148 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:148: void ReportTimeUntilFirstTrigger(UserClassifier::UserClass user_class, On 2017/04/12 13:43:30, Marc ...
3 years, 8 months ago (2017-04-12 14:03:27 UTC) #8
Ilya Sherman
https://codereview.chromium.org/2810053004/diff/60001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/60001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode153 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:153: "NewTabPage.ContentSuggestions.TimeUntilFirstSoftTrigger_RareNTPUser", Optional: You're welcome to use dot instead of ...
3 years, 8 months ago (2017-04-12 22:53:43 UTC) #9
jkrcal
Thanks, Ilya! PTAL, again. https://codereview.chromium.org/2810053004/diff/60001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2810053004/diff/60001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode153 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:153: "NewTabPage.ContentSuggestions.TimeUntilFirstSoftTrigger_RareNTPUser", On 2017/04/12 22:53:42, Ilya ...
3 years, 8 months ago (2017-04-13 08:42:59 UTC) #10
Ilya Sherman
Metrics LGTM, thanks.
3 years, 8 months ago (2017-04-13 21:08:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2810053004/80001
3 years, 8 months ago (2017-04-13 21:48:00 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 23:10:15 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/51a10acb782ef180630115d21190...

Powered by Google App Engine
This is Rietveld 408576698