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

Issue 2619203007: Log suggestion scores in 10 discrete buckets. (Closed)

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

Description

Log suggestion scores in 10 discrete buckets. Quality scores are usually in [0,1]. As UMA histograms don't support floats, this CL changes the logging to log as integer in [1,10]. Histogram definitions cannot be changed, so this CL deprecates the old Score histograms and introduces new ScoreNormalized histograms. BUG=672525 Review-Url: https://codereview.chromium.org/2619203007 Cr-Commit-Position: refs/heads/master@{#444321} Committed: https://chromium.googlesource.com/chromium/src/+/ec4069a22ddb364e0f28adc4f4f5f740a477d3a0

Patch Set 1 #

Total comments: 6

Patch Set 2 : deprecate old score histograms and introduce new, normalized ones #

Total comments: 2

Patch Set 3 : clarified histogram description #

Patch Set 4 : fixed float literals #

Total comments: 4

Patch Set 5 : reuse functionality from histogram_functions.h #

Total comments: 4

Patch Set 6 : cleaned up metrics code #

Total comments: 9

Patch Set 7 : more comments #

Total comments: 5

Patch Set 8 : introduce histogram enum and clarified comment. #

Patch Set 9 : fixed enum values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -90 lines) Patch
M components/ntp_snippets/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_metrics.cc View 1 2 3 4 5 6 7 12 chunks +60 lines, -90 lines 0 comments Download
A components/ntp_snippets/content_suggestions_metrics_unittest.cc View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 8 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (24 generated)
tschumann
3 years, 11 months ago (2017-01-10 17:59:23 UTC) #2
jkrcal
https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc#newcode173 components/ntp_snippets/content_suggestions_metrics.cc:173: // floats, we put them on a discrete scale ...
3 years, 11 months ago (2017-01-10 19:31:47 UTC) #3
tschumann
https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc#newcode173 components/ntp_snippets/content_suggestions_metrics.cc:173: // floats, we put them on a discrete scale ...
3 years, 11 months ago (2017-01-12 12:25:31 UTC) #4
jkrcal
lgtm, thanks! https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/1/components/ntp_snippets/content_suggestions_metrics.cc#newcode175 components/ntp_snippets/content_suggestions_metrics.cc:175: base::Histogram::FactoryGet(name, 1, 11, 12, On 2017/01/12 12:25:31, ...
3 years, 11 months ago (2017-01-12 15:13:10 UTC) #5
tschumann
asvitkine for histograms.xml https://codereview.chromium.org/2619203007/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2619203007/diff/20001/tools/metrics/histograms/histograms.xml#newcode38807 tools/metrics/histograms/histograms.xml:38807: + (0.0, 0.1]. On 2017/01/12 15:13:10, ...
3 years, 11 months ago (2017-01-12 16:49:17 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/2619203007/diff/60001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/60001/components/ntp_snippets/content_suggestions_metrics.cc#newcode180 components/ntp_snippets/content_suggestions_metrics.cc:180: ->Add(ceil(value * 10)); Can you use UmaHistogramExactLinear() here? https://codereview.chromium.org/2619203007/diff/60001/tools/metrics/histograms/histograms.xml ...
3 years, 11 months ago (2017-01-12 18:42:07 UTC) #15
tschumann
thanks! https://codereview.chromium.org/2619203007/diff/60001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/60001/components/ntp_snippets/content_suggestions_metrics.cc#newcode180 components/ntp_snippets/content_suggestions_metrics.cc:180: ->Add(ceil(value * 10)); On 2017/01/12 18:42:04, Alexei Svitkine ...
3 years, 11 months ago (2017-01-13 17:57:24 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/2619203007/diff/80001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/80001/components/ntp_snippets/content_suggestions_metrics.cc#newcode143 components/ntp_snippets/content_suggestions_metrics.cc:143: void UmaHistogramEnumeration(const std::string& name, Can this be removed too? ...
3 years, 11 months ago (2017-01-13 18:40:00 UTC) #21
tschumann
https://codereview.chromium.org/2619203007/diff/80001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/80001/components/ntp_snippets/content_suggestions_metrics.cc#newcode143 components/ntp_snippets/content_suggestions_metrics.cc:143: void UmaHistogramEnumeration(const std::string& name, On 2017/01/13 18:40:00, Alexei Svitkine ...
3 years, 11 months ago (2017-01-16 11:21:50 UTC) #24
tschumann
+Marc do you remember why we use (WindowOpenDisposition::MAX_VALUE) + 1) as an upper boundary for ...
3 years, 11 months ago (2017-01-16 14:14:19 UTC) #25
Marc Treib
On 2017/01/16 14:14:19, tschumann wrote: > +Marc do you remember why we use > (WindowOpenDisposition::MAX_VALUE) ...
3 years, 11 months ago (2017-01-16 14:35:00 UTC) #26
Marc Treib
https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc#newcode269 components/ntp_snippets/content_suggestions_metrics.cc:269: UMA_HISTOGRAM_EXACT_LINEAR( I don't understand this change - what was ...
3 years, 11 months ago (2017-01-16 14:35:12 UTC) #28
tschumann
On 2017/01/16 14:35:00, Marc Treib wrote: > On 2017/01/16 14:14:19, tschumann wrote: > > +Marc ...
3 years, 11 months ago (2017-01-16 15:00:42 UTC) #29
tschumann
https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc#newcode269 components/ntp_snippets/content_suggestions_metrics.cc:269: UMA_HISTOGRAM_EXACT_LINEAR( On 2017/01/16 14:35:12, Marc Treib wrote: > I ...
3 years, 11 months ago (2017-01-16 15:00:53 UTC) #30
Marc Treib
Huh. Two options: 1) I got confused. 2) The explicit +1 is to have an ...
3 years, 11 months ago (2017-01-16 15:12:24 UTC) #31
tschumann
https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc#newcode269 components/ntp_snippets/content_suggestions_metrics.cc:269: UMA_HISTOGRAM_EXACT_LINEAR( On 2017/01/16 15:12:24, Marc Treib wrote: > On ...
3 years, 11 months ago (2017-01-16 15:27:32 UTC) #32
Marc Treib
On 2017/01/16 15:27:32, tschumann wrote: > https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc > File components/ntp_snippets/content_suggestions_metrics.cc (right): > > https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc#newcode269 > ...
3 years, 11 months ago (2017-01-16 15:48:03 UTC) #33
tschumann
On 2017/01/16 15:48:03, Marc Treib wrote: > On 2017/01/16 15:27:32, tschumann wrote: > > > ...
3 years, 11 months ago (2017-01-16 15:50:09 UTC) #34
Alexei Svitkine (slow)
That's correct. On Mon, Jan 16, 2017 at 10:50 AM, <tschumann@chromium.org> wrote: > On 2017/01/16 ...
3 years, 11 months ago (2017-01-16 17:32:47 UTC) #35
Alexei Svitkine (slow)
https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics.cc#newcode268 components/ntp_snippets/content_suggestions_metrics.cc:268: // If not, we could use UmaHistogramEnumeration(). It's because ...
3 years, 11 months ago (2017-01-16 17:37:10 UTC) #36
tschumann
thanks for clarifying Alexei! PTAL https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics_unittest.cc File components/ntp_snippets/content_suggestions_metrics_unittest.cc (right): https://codereview.chromium.org/2619203007/diff/100001/components/ntp_snippets/content_suggestions_metrics_unittest.cc#newcode1 components/ntp_snippets/content_suggestions_metrics_unittest.cc:1: // Copyright 2016 The ...
3 years, 11 months ago (2017-01-16 17:58:37 UTC) #37
Alexei Svitkine (slow)
lgtm
3 years, 11 months ago (2017-01-16 19:02:09 UTC) #38
tschumann
Marc want to have another look or should I move you to cc?
3 years, 11 months ago (2017-01-17 12:02:20 UTC) #39
Marc Treib
lgtm https://codereview.chromium.org/2619203007/diff/120001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/120001/components/ntp_snippets/content_suggestions_metrics.cc#newcode268 components/ntp_snippets/content_suggestions_metrics.cc:268: // a valid enum value. nit: I find ...
3 years, 11 months ago (2017-01-17 12:13:25 UTC) #40
tschumann
https://codereview.chromium.org/2619203007/diff/120001/components/ntp_snippets/content_suggestions_metrics.cc File components/ntp_snippets/content_suggestions_metrics.cc (right): https://codereview.chromium.org/2619203007/diff/120001/components/ntp_snippets/content_suggestions_metrics.cc#newcode268 components/ntp_snippets/content_suggestions_metrics.cc:268: // a valid enum value. On 2017/01/17 12:13:25, Marc ...
3 years, 11 months ago (2017-01-17 16:00:26 UTC) #41
Marc Treib
https://codereview.chromium.org/2619203007/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2619203007/diff/120001/tools/metrics/histograms/histograms.xml#newcode38799 tools/metrics/histograms/histograms.xml:38799: + units="score"> On 2017/01/17 16:00:26, tschumann wrote: > On ...
3 years, 11 months ago (2017-01-17 16:21:09 UTC) #44
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/2619203007/160001
3 years, 11 months ago (2017-01-18 09:59:48 UTC) #49
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 10:04:38 UTC) #52
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/ec4069a22ddb364e0f28adc4f4f5...

Powered by Google App Engine
This is Rietveld 408576698